Have you had any “groin” cramps??

ba

Im 33 weeks and it started a few weeks ago very little cramps but yesterday at Walmart I had the most painful groin cramp, like right next to my vagina literally (upwards inner tight) cramping so bad I couldn’t even walk I was paralyzed had to apply pressure for it to stop and when I try walking again it would come back. My husband had to carry me it was horrible. Why this happens and how can I prevent it !??