This is a serious problem by the way but no one have had found the best solution to prevent a child being so engaged in technology.
No one can prevent them to engage in technology as the world is already changing to a digital world, but as a parent, we have to be aware of the new technology, adopt with it so we will be able to monitor and prevent our kids in accessing gambling sites or any site that is not yet suitable for their age, with knowledge, you can manage the firewall of your network and block gambling sites, that would easily solve the problem.