In cases like this I believe you will be the best to actually give yourself advice because it is when something has hurt you so bad that you can decide to stop it and I feel this is actually the base to many gambler putting a pause or restrictions to their gambling habits. Gambling is one funny habit that if you fail to control it will destroy you even when you feel you don't gamble much, it's tends to grow on you if you don't set limitations to it.
Your experienced will give you the right adjustments if you know how to control yourself, if you already suffer from big loses and if you are caing about your finances, you'll not going to push for more knowing that you are not ready losing more money, but if such control already been exceeded then chances to push yourself and trying to recover will be your intensions, it's how you work out with your own discipline that matters when you are involve inside gambling.
Basically like a proverb that "experience is the best teacher" and it is true because by making experience as a lesson then we will know about what we should do so that we can be better, if in gambling it means that we no longer experience defeat in too large an amount which means we have to limit several things such as the amount of budget, time to gamble and also maybe with your expectations of victory and when you can learn from experience then I am sure it will not be difficult for you to change everything for the better.
As you said that when a gambler succeeds in making experience as a lesson then when they experience a significant loss they will not dare to try harder to pursue recovery because they know that it will only bring them to a much worse situation and will prefer to minimize all their actions and decisions, but to be able to achieve this kind of thinking I think a gambler must have good self-acceptance first.