I have a hanging out friend who is having trouble paying his house installments, he wanted to borrow money from me but I didn't give it to him because I didn't have the amount he was borrowing at that time, I advised him to borrow from another friend but their answer was still the same, finally, he was a little desperate and with the little money he had he put the money into the online slot application, unfortunately, instead of succeeding in doubling his money, he lost all his money because he lost in the online slot application
The valuable message that can be taken from my friend above is never take risks to gamble to pay off your debts, the pressure is very big, the chance is very small that you can pay off your debts, often you end up losing even more and losing your money. look for loans, sell your valuables or look for part-time work to pay off your debts, is a good way rather than playing the small money you have in gambling
OP, if you have wanted to borrow him the money, you would had given him the little you have with you while he takes the little from those others who does not have sufficient as he may be demanding and then he could add up to that little he has which he loosed on the slot while chasing to double his stake to pay for this rent bill.
I have just come to analysis this fact according to your explanation.
He was frustrated and stranded which got him took the wrong step but on a full ground, that your friend must be a full to had been in critical need of money and yet he had the little with him for gambling.
He never thought about why he have not win all those while while he spends more time while gambling and what made him think he was going to win with his last fund?
Does he think the gambling sites offers sympathy winning? Of course not . He probably got what he deserved in a well served. Next time he would learn to take control of his gambling emotions.