Gambling is definitely not something which can help you to repay a loan. If someone is stupid to the extent that he/she starts gambling with that goal, I can guarantee that they would not stop until they lose everything, even if they initially won what they needed.
This.