It all comes with a frustration and desperation. Hard to accept that they've made certain loss that they can't recover with their current state but because they want to do it asap, borrowing money is their choice.
From there, it's not a good response and action if you have to deal with failures and frustrations. As a gambler, we're very emotional and since it's attached with money, you'll be dealt into incurring more losses and financial loss upon losing control emotionally.
The frustration that ultimately makes you decide to borrow money is that no one forbids it, but if the money obtained from the loan is used for gambling, I don't think that's appropriate. After all, gambling places do not provide a guarantee of always making a profit. It is better to use the capital obtained from the loan to work on opening a small business that might provide a profit and help the economy improve.
That is the importance of controlling your emotions well and never taking rash actions. Remain calm and carefully consider the risks that will come in the future.