Is lake swimming allowed in the 3rd trimester?

Ariel
We were going to go to the lake for 4th of July and I wanted to swim. 29 weeks currently and was told you can't swim in a lake due to bacteria? Isn't that what our closed cervix/mucus plug is there to prevent? Seemed odd but just thought Id see what everyone thinks.