What’s wrong with me

Okay I had protected sex 2 months ago(haven’t did anything since then)I started bleeding 3 days before my period was supposed to come and then I started again July 27 can someone please tell me what’s happening because now I starting to spot little brown dots (almost can’t see) and I’m 10 days away from my period