i think in both cases regulation is the key. for gambling there could be max $ per bet/month/year and for SW more testing and background checks to blacklist bad actors