The New York Knicks found their range from beyond the three-point line to overcome a nine-point deficit at the start of the fourth quarter and upset the visiting Miami Heat 93-88 Thursday.

Two long-range jumpers each by Danilo Gallinari and rookie Landry Fields helped the Knicks battle back, the New Yorkers finishing on a 21-12 run, including the last four points of the game.

The victory was the second in a row for New York following a six-game losing skid and lifted their record to 24-21.

Miami entered the game with the second best mark in the Eastern Conference behind the Boston Celtics and slipped to 31-14 with the loss.

Amare Stoudemire, who earlier became the first Knick since Patrick Ewing nearly two decades ago to be voted an All-Star starter, led New York with 24 points, while Gallinari poured in 20.

Backcourt man Fields played a brilliant all-round game, scoring 19 points and leading the Knicks with 13 rebounds.

Dwyane Wade finished with 34 points for Miami, while LeBron James, his fellow Eastern Conference All-Star starter, added 24 points but shot a sub-par 7-for-24.

DEFENSE KEY

We have to give credit to them, said James, who has produced some of his best performances on the Madison Square Garden stage. There were a lot of shots that we missed that we are accustomed to making.

Stoudemire said the Knicks won the game with defense.

We played great defensively from the start, Stoudemire told reporters after the Knicks avenged two earlier losses this season to the Heat in snapping a seven-game losing streak against Miami dating back to 2008.

The first two games we got caught by surprise at how fast they are. Tonight we put a total 48-minute game in.

The Heat led 48-46 at the half over the usually up-tempo Knicks and stretched their lead to nine points off the hot shooting of Wade, who accounted for 14 straight Miami points during the third quarter as the Heat seized a 73-64 lead.

Wade sat at the start of the fourth quarter for his usual rest and never regained his rhythm once he returned.

After sinking 14-of-15 shots through three periods, Wade missed all seven he tried in the final quarter as the Knicks turned up the energy on offense and defense, limiting the Heat to just 15 points over the final 12 minutes.