In short, a good parenting would prevent a kid from trying gambling out of curiosity or because of peer pressure.
Kids nowadays have the access in every social media because gen z parent's thinks that a gadget would be a great way to make a kid occupied and not get bored, but they're just killing their kids slowly by exposing them to radiation and other adult contents that's not for kids that can be seen online.
Most of the social media influencers here in my country are promoting gambling. So I'm not surprised that even a kid here knows how to play gambling.
Unfortunately not all parents who get married have thinking about having stable jobs, enough assets, have been dealing with their inner problem and willing to learn how to grow their kids. But, they were married just because their parents, close friends, and neighbors are asking when they will be married. Not to mention many people are married by accident.
We can't expect them will become a good parents because they didn't even make a good decision before they're getting married.
This is why, not all people in this world should be in marriage, some people are happy being single and some people are happy with a partner.