Sex 38 weeks please help!!

Chey • Boss wife 👑 Boss mom 👩‍👧
Tmi but I was having sex earlier and I was enjoying it very much then all of a sudden I started getting some sharp like pains and then I started cramping very bad and couldn't finish.... I'm not cramping anymore after we stopped.. What is this????