Lifestyle changes like quitting smoking, limiting the intake of alcohol, having a balanced diet, regular exercise and treatment of underlying conditions that increase risk of heart attack with proper medications can all help in preventing heart attacks.