Discharge or mucus plug?

I’m only 31 weeks having painful cramping for 2 days and a LOT of movement with a horrible dull ache in my back.

I also have gestational diabetes so I’m worried about him coming earlier anyway. Please advise