South Korea was given a scare by the 21st ranked Poland before grinding out a 3-2 win in their third match of the Sultan Azlan Shah Cup.
The win kept the Koreans in the mix for a final berth as they head the table with seven points from three matches.
But their continued stay at the top of the standings will depend on the Malaysia-India game to be played later.
Poland is at the bottom of the table with three defeats and looks set to play for fifth placing.
South Korean coach Shin Seok-kyu was understandably relieved at the win which kept the final ambition alive.
“It was a tough match although many did not think so. I was not taking any chances considering the fact the Poland players were tall and played an aggressive game.
“I am glad that the players did not give up and the last goal was something that we had practiced in training. It paid off,” he added.
Against the run of play, Poland took the lead in the 28th minute through a field goal scored by Joseph Hillyer.
The Koreans tried to regroup and then took control of the match, but all their attempts were snuffed out early by the Polish defenders.
It was only in the 40th minute that the Koreans managed to score a goal. It was a field attempt through skipper Lee Nam-yong.
But the Poland side relying on their counter-attacks found second wind and in the 50th minute took the lead.
This time Jacek Kurowski was the scorer as he latched on to a through pass and slotted past the Korean keeper Kim Jae-hyeon.
Jung Man-jae, however, provided relief for the Koreans when he scored the equaliser in the 56th minute.
As the match was headed for a draw the Koreans struck with 20 seconds on the clock.
Man-jae was the scorer of the winner from a goalmouth melee after a quick counter-attack.
Poland coach Karol Sniezek was disappointed at the last minute goal.
“It was disappointing but we accept that this kind of result will happen. Our players tried to keep the ball but they failed to stop the quick counter-attack. We can only learn from this,” he said.