Is quite unwise to take loan to gamble with since we know that you can lose all the money you use to gamble, the fact that gambling is a probably games and we can't tell if we are going to win, if means we need to make everything possible to remain at a stable stand Post that can increase our confidence level at some point, so for that taking a loan to gamble with is a no go area since it will put us in a bad state for so long.
Even though it's an uncomfortable thing to lose some amounts of money being deposited into a casino there's still a level of confidence one might have when you know that you are gambling with your own money, borrowing money to gamble puts us in a bad state just like you said especially when we end up losing the money we staked...this is one of the biggest mistake that anyone can ever make