Using borrowed money to gamble certainly has a greater level of responsibility, at least that's what I've experienced and felt in the past. But one thing that makes me confident to borrow money for gambling is, I realize and or I am very confident that I can win at a certain bet and at a certain time at that time. But, if I'm not confident that I can win, then I also wouldn't be desperate to borrow money to gamble because honestly, borrowing money to gamble is very risky. So yes, it seems borrowing is fine i guess but one thing we have to realize is, that we also have to be aware of being able to return it. Whether it's from the profits from gambling itself or if it fails, you must be prepared to raise money to repay the loan of course.
If you are so confident that you will win, it means that it should not be called gambling anymore.
If you are too sure that you will win, you should have gone for like 500k dollars loan instead of borrowing 1k dollars from a friend.
There is no way anyone will be so so sure that they will win.
That is by the way, discussing about the topic raised in OP, borrowing to gamble is not a good advice.
Gambling itself is a risk, taking a loan is another risk. Using loan money to gamble is a double risk and if you do not win it can lead to depression. The only people that will consider to do that are addicts.