MIAMI (AP) — The Miami Heat knew the run was coming. Even early in the fourth quarter, with a 23-point lead, Heat players were telling each other that the game wasn't over.

They were right. And they handled the moment — then moved atop the Eastern Conference.

Jimmy Butler broke LeBron James' record for triple-doubles in a Miami uniform, Duncan Robinson scored 25 points and the Heat held off a furious comeback attempt from the Los Angeles Lakers on the way to a 113-107 win on Sunday night.

“I think those are important experiences to go through together,” Heat coach Erik Spoelstra said.

The win, combined with losses by Brooklyn and Chicago, put Miami (30-17) at the top of the East, a half-game ahead of the Nets (29-17) and a game clear of the Bulls (28-17).

Butler finished with 20 points, 10 rebounds and 12 assists for Miami, his 10th regular-season triple-double for the Heat — one more than James had in his four Miami seasons.

Miami led 89-70 going into the fourth, pushed the lead out to 23 with 8:38 left, then had to stave off what became a 32-13 Los Angeles run that got the Lakers within four in the final moments.

“To have those kind of pivotal moments down the stretch, you can never have enough of those," Robinson said. “They're invaluable."

Caleb Martin scored 15, Bam Adebayo scored 14 and Gabe Vincent had 11 for Miami, which wasted most of a 26-point first-half lead.

James carried the Lakers yet again, finishing with 33 points — his 17th consecutive game with at least 26 — and 11 rebounds. Russell Westbrook scored 24 for the Lakers, former Heat guard Avery Bradley added 15 and Carmelo Anthony scored 11.

“I'm in one of the best zones offensively I've been in in my career," James said.

The Heat were still without Kyle Lowry (personal matter) and Tyler Herro (health and safety protocols). It was the fourth consecutive missed game for Lowry, the third for Herro.

The Lakers were without Anthony Davis for a 17th consecutive game while he continues recovery from a sprained left knee ligament. Davis was listed as questionable for Sunday, raising the chance he could have finally returned, but the Lakers decided he needed at least a couple more days.

“He’s getting closer ... but not quite there yet,” Lakers coach Frank Vogel said.

The loss sent the Lakers to 23-24 — the first time since James' rookie season that he's been on a team with a losing record this deep into a season.

Miami came out flying, opening a double-digit lead just 5:12 into the game, going up 32-14 on a 3-pointer by PJ Tucker with 3:36 left in the opening quarter and taking a 39-25 lead into the second after Max Strus beat the clock with a corner 3-pointer over James’ outstretched arm.

The Lakers trailed by as many as 26 in the first half, their biggest pre-halftime deficit of the season, before James flexed some muscle just before the break. He scored the Lakers’ last six points of the second quarter, posing after powering through a double-team for one of those baskets, and got Los Angeles within 69-52 by the break.

“We just had a few too many breakdowns and they made us pay for everything," Vogel said.

Then came the rally try. James grabbed an offensive rebound and scored with 1:07 left to get the Lakers within 111-107, then got a stop on the next Heat possession — but Bradley fouled Tucker on a moving screen with 37.7 seconds remaining for a costly turnover.

Talen Horton-Tucker had another turnover on an inbounds pass with the Lakers down four with 7 seconds left, and Miami would survive.

“In the fourth quarter we played the type of basketball we want to play, but we dug ourselves too much of a hole early in the game," James said.

TIP-INS

Lakers: The Lakers got a three-night stay on their lone visit to Miami this season, arriving Friday night after playing in Orlando. They aren’t scheduled to leave until Monday afternoon, flying then to New York for a Tuesday game against Brooklyn. ... James hadn’t played at Miami since Dec. 13, 2019.

Heat: Butler, playing in his 709th game including playoffs, had 10 assists by halftime for the first time. ... Miami held the Lakers to 11 of 40 shooting from 3-point range, and had 31 assists to the Lakers' 20.

SPO BROS

Spoelstra studies film of James often at home. Not Lakers game film, however. Spoelstra and his wife Nikki have two young sons, and the boys are big fans of James’ movie “Space Jam: A New Legacy.” Said Spoelstra: “He’s our entertainment a couple nights a week. We put on ‘Space Jam.’ ... Our family enjoys the movie. I know our kids love it. He’s creating great joy for the Spo bros in our household.”

GIVE ME FIVE

Miami’s Dewayne Dedmon had a rare five-point possession — scoring while being flagrantly fouled, getting one free throw from that, then getting another field goal on the continuation after the flagrant. He also helped the Lakers have a five-point trip, flagrantly fouling Anthony, who made two free throws before Stanley Johnson hit a 3-pointer on the Lakers’ extended possession.

MAJOR TURNOVER

The last Lakers at Heat game was on April 8. The Lakers used nine players in that game; none of those nine are still with the Lakers. The Heat used 10 players in that game; of those, only Butler, Adebayo and Robinson played for Miami on Sunday.

UP NEXT

Lakers: Visit Brooklyn on Tuesday.

Heat: Host New York on Wednesday.

___

More AP NBA: https://apnews.com/hub/nba and https://twitter.com/AP_Sports