While there is no guaranteed way to prevent ASD, certain measures can reduce the risk. Ensuring good maternal health, avoiding exposure to harmful substances during pregnancy, and maintaining a healthy diet can contribute to lowering the risk. Genetic counseling may also be recommended for families with a history of ASD.