A bad financial situation is already a state of stress from which you need to find a way out before starting other riskier games. First, you need to find a good job to improve your finances and only then start gambling. And this should also be very careful and gradual, on a small part of your salary, so that losing is not the reason that you can return to a state of stress again. Therefore, it is much easier to prevent stress than to try to get out of it later.
If you are already in financial distress, then, you might want to think of pausing any gambling activities for the moment. Much better if you have no financial problem when you start your session because you will just be agitated in chasing your profits. And most of the time, the luck won't play when you want it.
In short, to avoid stress, better use your spare funds and stop when you busted it. Don't try to recover by borrowing money, because, it will surely put you in a tight position where you want to change the narrative of your gambling journey.