MIAMI — Whenever Boston’s lead looked shaky in the final minutes, Avery Bradley had an answer.

And just like that, the Celtics’ three-game road slide is over.

Bradley scored 25 points and forced a big turnover when he knocked away a pass by Dwyane Wade with a minute remaining, Jared Sullinger had 17 points and the Celtics put all five starters in double figures on the way to beating the Miami Heat 105-95 Monday night.

Isaiah Thomas scored 16 and fellow starters Jae Crowder and Amir Johnson each added 13 for Boston. Evan Turner had 13 off the bench.

“I felt like we came out from the beginning of the game and had a defensive mindset,” Bradley said.

He had enough of an offensive mindset when Boston needed as well. Bradley has scored at least 25 points in three of his last six outings.

“He hit huge shots when we needed them most,” Celtics Coach Brad Stevens said.

Wade scored 30 for Miami, which cut a 14-point deficit to one in the fourth quarter but never led after halftime. Chris Bosh played through an illness to add 21 points for the Heat, who got 10 from Tyler Johnson off the bench.

Miami made it a one-possession game on five separate occasions in the final 14 minutes, and Boston scored on its ensuing trip every time. The first three of those were all on jumpers by Bradley, two of them being 3-pointers, and Wade lamented afterward that Miami couldn’t get stops at the biggest moments.

“They played their game from the start,” Wade said. “They were the desperate team tonight.”

Boston was up 94-83 midway through the fourth when Wade got on a tear, scoring eight consecutive Miami points and getting the Heat within five on a layup with 3:24 left. Bosh scored with 2:02 left to cut Boston’s lead to 96-93, but Crowder made two free throws to give the Celtics a bit of breathing room and the Heat never got any closer again.

“We had some stretches where we were able to change the momentum, but for the most part those skirmishes, loose balls, they were able to impact those more consistently,” Heat Coach Erik Spoelstra said.

“In the end, even though our offense was inconsistent down the stretch, those plays really impacted the momentum, the will and feel of the game.”