There are many ways you can prevent a heart attack :
You can be a healthy weight
Have high cholesterols and blood
You can not smoke
Avoid drinking too much
Controls any illnesses that you have for example diabetes
There’s a few hope that helps if you need any more I know some more !