Help please?!

Grainne

I'm 39 weeks and 2 days pregnant and went to pee there was a brown discharge, I had a few back cramps last night and nothing today, I've been loosing my mucas plug as weeks. Anyone know what's going on