There is no way to prevent astigmatism. The eye develops this way in some people.
If astigmatism is not corrected early in life, it is possible to develop lazy eye, also called refractive amblyopia.