If people learnt not to gamble by gambling there would be nobody with gambling problems. Teaching kids how not to gamble by gambling can be pretty bad for people who have addictive personalities, getting that gambling high and wanting to replicate that again and again.
Teaching your kid it is a waste of money and not to endorse that practice might be a better choice.