When the baby is born is when you would stop having sex to allow your body time to heal. Up until then you can have sex whenever you like
Just to add, not to have sex once your waters have broke to prevent infection
Stop when your water breaks. Lol. As long as you are enjoying yourself anyway.