If the question is when is the best time for a gambler to draw a line or stop I think it's clear that in a win or lose situation is a situation that is indeed highly recommended to stop, such as when you have managed to achieve a number of wins where stopping at that time can save you from the possibility of losing all the money that has been won which indirectly also saves you from regret.
And in a losing situation it is almost the same, everyone will never like losing money but in any case losing is a natural part of the game, meaning losing is natural but when the number of your losses is in a row then it is a problem, and that is why stopping when you experience the first loss is always recommended where the benefit is that you will avoid a much larger amount of loss at that time. This means that in two win or lose situations stopping is a wise idea to do, after all there is still plenty of time for you to gamble.
You set your limitations BEFORE you even consider gambling. Period. This relates to self-respect more than only money. You are already losing if you are gamble without a strategy. You are paving yourself for a world of suffering
Dont be an idiot. Use discipline and intelligence. Know your constraints and know yourself. Whether you win or lose, the reason counts most. Are you afraid or ahead-minded and therefore quitting? The actual inquiry is that. Not difficult at all. It's about learning to be in charge rather than allowing the game to run you. Should you find that unacceptable, stay the hell away. Not a financial and emotional train wreck, gambling should be pleasurable. Remember that...