if you gamble online I don't think it will affect the environment wherever you are, but it will have an effect if you invite and teach people in your environment who have not previously gambled
if we can control ourselves, maybe we will not invite other people or close friends to play gambling. But a gambler will generally tell his winnings to his closest friends so that he is unconsciously able to influence other people to gamble. so environmental factors are the main reason someone is addicted to gambling because they will be curious about the wins that their friends get so they will try to play in the context of being curious.
so basically the environment will determine a person's fate on their nature if their environment is mostly gamblers maybe sooner or later someone will be affected by the name of gambling, but if the environment does not have gamblers I don't think it is possible that someone will fall into gambling.
Exactly. The more contact you have with something, more prone you will be to consume that for your life. That is all about the social environment of your conversations, the physical environment of your way to work which pass in front of a gambling house, the virtual environment which constantly bombards you with gambling ads and video suggestions.
Humans are susceptible to external influences and the brands or companies know how to work with this smartly to challenge, please and fascinate your mind as customer.