how i could stop countdown timer when the player reach end of level ?

I try with another method using the set timer by function name the timer works but the problem is the condition to trigger the game over because I don’t know if I should do a function or use the branch ?
Screenshot 4