Unprotected sex

I had unprotected sex at the beginning of my period! Which was on the 17 and it lasted til the 21. Today is the 26 and I have spottings? What could this be? I've had two unprotected sex this month one on the 13 and one at the beginning of my period which was the 17...