Preventing vaginal infections involves practicing good hygiene, avoiding douching, wearing loose-fitting clothes, and using protection during intercourse. It is also beneficial to maintain a healthy diet and manage stress, as these factors can influence vaginal health.