About pregnancy sex...

🧸Ashley🧸
I'm 37 weeks tomorrow last week me and my boyfriend had sex but it was rough! I had tiny contractions for 6 hours and they were every 5 minutes and lasted about 10 seconds every time they hit. Did I contract because of it being rough? I'm scared to have sex again because of that happening. My cervix was also checked 3 times at the er. It was all the way closed. I had the shot that stops contractions. Should I try to have sex again, but light sex & not so rough. ?