To shave or not to shave, that is the question

During pregnancy, I heard that at a certain point, you have to stop shaving to prevent infection

On the other hand, I feel like that is unsanitary, and you'll get more bacteria sticking to the hair...causing infection

THOUGHTS?