Not at all. My experience in this case indicates that there is a correct behavioural pattern which avoids the issue entirely and requires zero government's intervention.
But if you insist on having a regulation, okay, I'm fine with it. What about the following regulation: each time a minor is found gambling or smoking, his/her parents are fined 100x times the stake/the price of cigarettes?