I guess gambling will only be wrong if you won't be putting your own money at stake. If you will gamble amount you just borrowed from others then you won't be paying when you lose.
You'll never get wrong in gambling, if you set in your mind that in the end you have more chance of losing money than to win more. Gamble what you can afford to lose. Gamble for fun, if you win and earn money then you are a lucky one. It's all about pure luck ;-)
That's just my opinion, we all have different perspectives about gambling.
Gambling in my view is wrong in both the cases. Either you gamble with your own money or with the one that has been taken as a debt, it would definitely be harmful to you in the end.
I agree with you on the stance that while gambling, it should be kept in mind that there are greater chances of a loss than winning something valuable in return. Gambling being a luck based thing has nothing to do with the strategies or experience; it only pays you off if you really have a good day.