Sex is perfectly fine, especially at this stage of pregnancy. Doctors and people say that sperm contains the hormone that helps you dilate and thin anyway, so it could help you out.
Its perfectly fine and it will help you prepare for contractions. Sperm will soften your cervix and help you dialte..