This is a very common reaction, scientists have noticed that when the potential risk and prize that a person can get are on the low side, people are way more willing to take the risk, as they do not fear losing at all.
But when the monetary reward reaches a high point, we see a reversal of that trend and people become way more conservative on their decisions, so cashing out at the moment the OP did was without a doubt the right choice if you ask me.
It's good if you're not afraid of losing the money you bet, because that's one of the things you have to do when gambling to avoid overdoing it. I think it is very different to gamble using your own money and using money that is actually a gift or other freebie. when we have prize money and put it into gambling and can win maybe we can gamble more freely because even if we use a high betting amount we don't worry because it is free money, but whatever happens when we get a win then it's best to cash it in, no It doesn't matter if it's prize money or what, but when you win, it's best to cash it in, not to keep going.
Apart from that, the choice is actually up to us, where the action we will take is purely an act of our own will, but even though we have a choice, that doesn't mean we can do it brutally, because when we have won, it's best to consider the action we will take. what must be done, if you are ready to lose the victory that you have obtained then please continue, but don't let actions like that actually make yourself feel annoyed or disappointed because the victory that has been obtained is lost again, basically that is the action of our choice ourselves so we have to be able to accept it.