To be honest, with my oldest (2), my water broke because of sex lol it was on my due date too! So you're can habe sex literally right up until your little bundle is born :)
My Dr. Recommends that I have sex until the very end unless it hurts!
If you aren't having any pain or problems you don't have to stop until the baby is born.