Cramping after squatting down/bending over?

I squatted/bent down from standing to unplug an outlet and had a sharp pain in my uterus and ever since I feel very crampy and sore. Do you think that hurt the baby or just ligament pain? I am 25 weeks