To avoid a stroke, maintain a healthy lifestyle by eating a balanced diet, exercising regularly, avoiding smoking, limiting alcohol intake, and managing chronic conditions like high blood pressure, diabetes, and high cholesterol. Regular check-ups and adhering to prescribed medications are also crucial.