IBS and Possibly contractions?

I have IBS and I take iron pills to help with my low iron . I’m 40w3d and I’m 2cm dilated and for the past 2 days I’ve had pains and had to poop. Does anyone else with IBS relate? does this mean labor is near? Today I’ve gone to the bathroom 4x and it’s sharp pains and pretty runny.