On off period pains at 40 weeks?

I've had them for 2 days now but they aren't consistent and happen randomly! Could this be a sign I'm dilating or that my cervix is becoming effaced etc? It definitely feels like my body is doing something but they are strong period pains!