Well, one way is to stay away from AAS altogether.
Then after that, it would be not doing dumb shit with weights one can't handle with good form, staying away from 1 to 3 rep maxes (which is only useful for powerlifters), stretching and doing mobility drills, sleeping enough, recreational sports, cardio (perhaps something like actual games or something more taxing than walking on a treadmill, like running or cycling ON THE PAVEMENT, eating right, and so on. (This is pretty much the case to stay healthy for ordinary people as well.)
Not to hard to figure out. But people will continue to use AAS in hefty doses. I used to actually feel sorry for people who died at relatively young ages from roid use. Now my attitude changed. Many were very cocky and valued being huge at the expense of healthy, lifespan, and well being of the loved ones who will suffer with their wrecked health... or DEATH!
Grown men should know what they are getting into, and if a risk of heavy roid use is poor health at early to middle age and the worse one is death, they should understand this as well.
####
Live by the sword, die by the sword!
###
You play, you pay!
###
Roll the dice!