Miami’s last trip to Boston on Jan. 2 resulted in a double-overtime loss that triggered a Celtics renaissance.

But tonight the Heat came in with something more powerful — a winning streak that now stands at 23 games, the second longest in NBA history.

The Celtics, despite a career-high 43-point performance from Jeff Green and a lead that billowed out as far as 17 points in the first half, and stood at seven points (99-92) with 5:14 left, were undercut in a familiar way in the 105-103 loss to Miami.

LeBron James, following a controversial out-of-bounds call that gave the ball back to the Heat with 1:26 left, tied the score at 103-103 with a put-back off his own miss.

And after first Green, with an air-balled layup, and Brandon Bass missed on the Celtics’ next two chances, the reigning MVP hit from 20 feet over Green for the game-winner with 10.5 seconds left.

The loss snapped an 11-game Celtics home winning streak.

James supplied the killer with 10.5 seconds left when he buried a 20-footer over the out-stretched right hand of Green for a 105-103 Miami lead.

Green drove but his shot was blocked out of bounds by Shane Battier, leaving the Celtics with seven seconds. This time the call was verified by video review.

Pierce missed from the right side of the circle, Dwyane Wade chased down the rebound with 1.9 seconds left, and the Heat called timeout.

As the Celtics know better than most about a ames-led team, the last five minutes of a game are generally the most dangerous.