Grammar: Prevent or avoid
For instance, I can say, to avoid the morning rush hour traffic, I usually leave my house an hour early. In this context, prevent is a misfit. However, if I say “to prevent heat stroke on hot summer days, drink plenty of water and stay out of the sun”.