In my view , gambling only wrong if you're messing your family, your friends when you lost. Borrowing money, scamming money ,... At that moment, your gambling is totally wrong.
Yeah its wrong when you borrow money just to gamble specially when you borrow from your friends because there is a tendency that you wont be able to pay them when you get addicted in gambling and that will be the reason your friendship will end. Your family will also leave you if you focus too much in gambling. So its very wrong to let your self get addicted in gambling but if you only gamble for fun and with limitations then its okay.