The best approach is to try to avoid infections, especially while you are pregnant. For example, washing your hands frequently and avoiding people who are sick are just two ways that you can avoid infections.