Kyle Anderson almost scored the game-winning basket for the Memphis Grizzlies in their intense showdown with the Denver Nuggets on Monday night.

Down by just a point in the final possession of the game, Anderson converted a shot from behind the backboard. However, officials waived the basket off, saying that the 25-year-old stepped out of bounds before he took a crucial shot with three seconds left in the game.

The referees reviewed the play, and Anderson's foot clearly touched the line before he made the attempt. In turn, the Nuggets escaped with a 95-92 come-from-behind win against the Grizzlies FedExForum in Memphis.

Memphis looked poised to pull off an upset against the Nuggets, who are currently the second-best team in the Western Conference. Memphis built a 19-point lead at the half, which increased to 25 points halfway through the third period. The lead went down to 17 points heading into the fourth quarter.

The Nuggets waxed hot in the final period, as they continuously erased the deficit. They eventually took the lead with 43.9 seconds left in the game off a 3-pointer from Will Barton. Justin Holiday answered with a three-pointer of his own, but Nikola Jokic gave Denver the lead again, 93-92, with 28.9 seconds left to play.

Thanks to Anderson's waived basket and two made free throws from Gary Harris, the Nuggets improved to 34-15. Jokic led the Nuggets with 24 points and five rebounds on top of four steals and three assists. Barton finished with 20 points and five rebounds, while Harris ended up with 11 markers.

Marc Gasol paced the Grizzlies with 28 points and nine rebounds, while Mike Conley finished with 23 points and 11 assists. The Grizzlies fell to 20-31, which is the second-worst record in the Western Conference, only better than the Phoenix Suns' 11-41 card.