The time to quit gambling is before you start.
I disagree, but oh well, I have gambled before, so I guess that is the gambler speaking.
Gambling is a negative EV activity. Therefore the highest EV is 0 with 0 wagered.
This unless you call Poker gambling like some people seem to do. Then it will totally depend on your skill and emotional stability.