When the lose come, it's better to take a break for a second, just don't continue gambling directly because your head is not in a good situation and you will rage bet.
Recovering losses from gambling must be reason for many gamblers why they are still sticking with gambling even after 100s of failures. I also have tried to recover but never found myself successful. Losses are just the fee for gambling houses hence we should never try for recovering them.