Yeast infections

I know they are common in pregnancy but obviously who wants them lol I've had 2 and I'm 25 weeks pregnant. I never had one before I got pregnant, how are ways I can try to avoid getting them?