Very light spotting 10 days before period???


I have a pic down below, but what could this be ??? My next period is supposed to be around the 30th . My left side above pelvis been midly cramping on and off . My last period was october 2nd. October 1st i was spotting, but LMP was October 2nd what’s going on? & yes i had unprotected sex .