Changes in behavior depending on the environment, it seems true. I feel I will be very religious if I continue to be in a religious environment or only make friends with religious people. It can also happen to gamblers, they will be easily influenced to gamble if they live in a gambler's environment.
Once when I was 19 years old, I made friends with those who smoked marijuana. I see them every day and they are always smoking marijuana, and once for some reason I really wanted to try what marijuana looks like even though I've basically never tried it. It is an experience, so it may have something to do with how a person may experience changes in their behavior towards their environment.
That is the importance of choosing a good environment, because sometimes we do not realize that we are easily influenced by the environment.
Indeed there are people who have strong principles in their lives, so the environment around them does not change them, but the number of such
people is very few. The reality that I found in my life, most people will indeed be affected by the environment in which they live. That's why I limit
myself when I meet people whose behavior I think is negative, because I don't want to be influenced by them. Likewise when we don't want to be
addicted to gambling, we must avoid an environment where many people gamble, otherwise we will be affected and can gamble excessively.