Quit while you’re ahead

Meaning: To stop doing something while you are still in a favourable position.

Example: You’ve already won two games, so quit while you’re ahead.