Preventing strokes involves addressing controllable risk factors such as high blood pressure, diabetes, obesity, smoking, and high cholesterol. Lifestyle changes like a healthy diet, regular exercise, and avoiding tobacco and excessive alcohol can significantly reduce the risk. Medications may also be prescribed to manage risk factors.