Would I have miscarried by now ?

I’ve been having cramps and aching pain in my lower back and pelvic area constantly like 24/7 it’s just very uncomfortable but it’s been going on for about 4 weeks. I saw baby’s heartbeat yesterday but why am I convinced my body has been trying to miscarry for 4 weeks ..