Yes you could have a stroke or a heart attack if you strain too much on the toilet. BUT you would need to be at risk of these events already. A healthy person won't have a stroke or a heart attack trying to move their bowels. Have your blood pressure and cholesterol levels checked, and eat plenty of fruit and vegetables to keep your bowels working happily.