A study of 11,000 people in the USA collected between 1987 to 2019 shows that seven things can help prevent dementia:
https://n.neurology.org/content/early/2022/05/25/WNL.0000000000200520
stop smoking, eat a healthy diet, maintain a healthy weight, remain physically active, and to control blood sugar levels, cholesterol levels and blood pressure.