Chasing your losses could be the biggest reason why people end up in a loss. I have seen one guy who turned his 300k into 6 million dollars and then reached negative 600k. This was in another casino, it was a big deal in the forum as well and we talked about it on that places topic for a long time, dude was a person who made a lot of money from crypto and who was an early bird so he was capable of affording it that much but that was still insane.
He could have considered something like "I am starting with 300k, if I reach 100k I will stop, if I reach 1 million dollars and above then whenever I drop to 1 million again I will stop" that way he would either have 200k loss and stop right away, but if he won (which he did) then whatever amount he won, he would be able to lose it until he had 1 million and that would be a bit over 3x profit and could get out. Instead dude got out with 900k loss total (300k initial and 600k on top of it).
I think that every gambler has already experienced that! No matter how disciplined you are, sometimes you just start tilting especially if you have had a really bad loosing streak; than you always want to win back your money by playing riskier bets. Taking profits is something were I am better in, but sometimes you just get greedy and want more and more.
For this situation to avoid from happening, if you want an assurance that you will get money even if you continue playing - get some of your funds out, at least your initial bankroll after winning some. So at least, your initial bankroll is already safe and then, you can continue playing with your excess funds. However, some gamblers can't control themselves as they will use all their money. In this case, it is on the gambler's prerogative to how extent he wants to go deep in gambling. If you are given the chance to recover your funds plus winnings, why not put some to safe. So you won't be regretting afterwards if you lose all your excess funds.