Brown discharge a week before period is due

Whitney

Ive been having light spotting off and on for the past 2 days, it started pink, which i assumed my period was coming.. Then the next day i noticed no spotting until the evening i noticed brownish discharge, and now again this morning. Im having mild cramping and mild pelvic pain.

Ive never had spotting like this before so im pretty confused. My period isn't due till the 23rd.