Mucus plug or discharge?

37 weeks 2 days. Had my appointment today and I got checked but before my appointment I was having contractions and now since I’ve been home I’ve been having contractions between 5-7 mins apart. Lower back cramps as well, I am 2cm 60% effaced. Advice?