Measures to prevent heart attack will include measures to lower the risk of coronary artery disease, as it is the most common cause of heart attack. Measures include making lifestyle changes like:
Eating a healthy diet
Limiting the intake of alcohol
Reducing weight in case of an overweight or obese individual.
Treating underlying conditions that increase the risk of having a heart attack (high blood pressure, high cholesterol, diabetes) by taking proper medications also helps prevent the risk of having a heart attack.