weird spotting

So this is the second time i bleed two weeks before my period. I dont know why it happens but im getting a bit scared. Its just spotting or it looks like im on my period. Does anyone know what it means? 
(Also, this happened the following day after i had sex last month & i had sex yesterday which today im bleeding)