Shaving

Is it safe to still shave during pregnancy? Is there a time that you should stop shaving down there before giving birth?

Edited to add: I’m asking as I have read that it can raise the risk of infection so I wanted others opinions who are either pregnant currently or have been.