Don't buy any bitcoins then you will safe from online gambling.
Bitcoin is not the only currency used in on line gambling. You can also pay with credit/debit cards to do on line gambling.
Does it mean you should decline to be paid with your local currency so that you will not do on line gambling?