|Mirza Teletovic was clutch for Bosnia and Herzegovina, making the team's last five points to seal the victory|
Bosnia and Herzegovina moved to within touching distance of a spot in next year's EuroBasket by winning at Georgia on Wednesday.
Aleksandar Petrovic's team prevailed 107-103 for their fifth victory in seven games.
Heading into the clash, Bosnia and Herzegovina knew that if they prevailed, they would only need to win their last Qualification Round game at home on Saturday against Romania, who are 1-5 going into that clash, to seal a spot in the Final Round.
Georgia had won the first encounter between the sides in Sarajevo by a single point so they will now lose a potential tie-breaker to the Bosnians should the teams finish with the same record.
On Wednesday, the Georgians had home-court advantage and were making it count when they went in front by seven early in the second half.
Instead of pulling away, the home fans were left frustrated as the visiting side dug in its heels and went in front at 64-62 later in the third quarter on a jumper by Mirza Teletovic.
After Tornike Shengelia, Teletovic's Brooklyn Nets teammate for the coming season, leveled the contest at 64-64, Bosnia point guard Zackary Wright made a lay-up to reclaim the lead and to go to 23 points.
The lead went back and forth until Teletovic buried a shot from the arc with 5:31 remaining.
That put the visitors in front, 88-85, and started a 7-0 run.
Georgia held their nerve, reeling off seven unanswered points to lead, 98-97.
Manuchar Markoishvili made two free-throws to spark the run that was finished by Jacob Pullen's driving lay-up.
With 27 seconds to go, Markoishvili struck from behind the arc for a 103-102 Georgia advantage.
No team that has Teletovic is out of contention until the final buzzer sounds.
He immediately nailed a three-pointer to put his Bosnia and Herzegovina back in front.
After a Georgia timeout, Pullen missed from the arc and Teletovic added two free-throws.
Markoishvili missed a three-pointer two seconds from the end and Bosnia and Herzegovina celebrated a famous victory.
Teletovic ended up with 25 points.
Markoishvili had 21 points and Zaza Pachulia 21 with 11 rebounds for Georgia.
The Georgians next face Latvia in Riga, having won the first meeting by three points.
Latvia were 3-2 heading into their game at the Netherlands later on Wednesday.
Bosnia and Herzegovina player Zackary Wright:
"Today were playing two outstanding teams in a game which was decided not until the last minutes. The Georgians have put in a terrific effort. Normally, I am not the one with the most attempts, however today the team needed me to step up and, luckily, I hit most of them and we came out victorious."
Bosnia and Herzegovina assistant coach Denis Bajramovic:
"The Georgians played a very attractive game today and that's why I want to congratulate them as well as the fans. They were very active and supportive of their team. We had a clash with a very strong opponent and I was very happy to win in the end."
Georgia player Viktor Sanikidze:
"The game was a very close one. Unfortunately, everything was decided in the last minutes. Our opponents were amazing today and I want to congratulate them on the deserved win."
Georgia head coach Igor Kokoskov:
"Today the Bosnian team was playing much better than the last time. It is a pity that we had a good chance to win - the score was fairly even throughout the whole game - but we let it get away from us. Despite this, we will draw conclusions and do our best in order to improve in the next game."