ATLANTA - The Knicks looked like a team fighting for a playoff spot Monday night and may have hurt their chances of getting the first pick in the draft.

Now a top four selection is no longer a guarantee and it's possible the Knicks can draft as low as sixth.

Playing perhaps their best game of the season, and at the worst time, the Knicks shocked the East's best team. They led the 60-win Hawks by 17 points and held off Atlanta for a 112-108 victory.

The Knicks (17-64) no longer have the worst record in the NBA. They're looking down at Minnesota now. The Timberwolves (16-65) are one game up with one to play.

The team with the worst record has a 25-percent chance of getting the first overall pick and is guaranteed a top-four selection. The second-worst team has a 19.9-percent chance of winning the lottery and can't pick lower than fifth.

The Knicks' finale is Wednesday at home against the Pistons. The T-Wolves host the Thunder that same night.

"I'm sure people are upset with us," Derek Fisher said. "But I don't think you can ever go out there and basically try and not play your best. It's a hard thing to do and at the same time say you want to be the best. Those two things don't go together."

If the Knicks and Timberwolves end up tied, they essentially split the lottery odds. A drawing would determine who gets the extra chance, and ultimately, will be considered the NBA's worst team.

But now the Knicks are just one game up on the 76ers. If they finish with the same record, a drawing decides who's second and who's third. The third-worst team could fall to sixth in the draft. Philadelphia closes out the season Wednesday against Miami.

The Knicks have put themselves in this position by winning their last two games. They shot 55.8 percent against the Hawks, who played all of their main players except for the injured Paul Millsap.

Rookie Langston Galloway had his best night. He was 10-for-12 overall, 6-for-6 from three-point range and scored a career-high 26 points. Tim Hardaway Jr. added 23 points and Jason Smith 20, including two foul shots with 9.3 seconds left to put the Knicks up four.

Jeff Teague and Kyle Korver each scored 19 for the Hawks.

Said Fisher: "I thought our guys, despite our record and despite whatever the probabilities and percentages of us winning this game, in terms of our future -- that has no bearing on these guys lives and their careers and their livelihoods, who we pick next year. This is about them and they went out and played that way."