That's what happens when we don't follow the basic rules of gambling. But I think you have learnt your lesson.
Most of us have faced this because of the uncontrollable urge to recover the money we lost in the previous bets.
Thus we end up using all our money to recover the amount we used since the start of gambling.
But it's better to limit our losses for the day and come back another day if we are losing a lot on a particular day.
Controlling the emotions is where many fail and hence lose all their money.
The best lesson that will really sink is the one that will hurt us in OP's case, it's his pocket and of course, his motivation because he needs to work hard to pay the debt and the interest, this is money that you can't afford to lose, this is the kind of situation where no gamblers want to be in, it's ok if it's your own money but this is not your money and it is incurring interest.
I won't say to stay away from gambling but be very very careful who you gamble - sorry for your loss though.
That's a good step taken by your government proactively to stop people from incurring losses due to gambling. But as we know still there are people who gamble using VPNs.
OP's story should inspire others to learn from their mistakes and limit themselves from gambling too much.