The runner reached the finish line first and began to celebrate his victory. Another race participant accelerated and almost deprived the athlete of first place.
The athlete began to celebrate his victory just before the finish line and almost lost.