to win something even though it seemed up until the last moment that you would lose 在最后一刻反败为胜The idiom is often reversed for humorous effect to show that a person or team were expected to win, but then lost at the last moment, snatching defeat from the jaws of victory.