What does this mean?

Last month, I started spotting for a few days before my period. This has never happened before so I was kind of concerned. Then, after my period stopped, I had sex and it restarted over again with an even heavier flow. Now, I’m supposed to get my period around today and I’ve been spotting for the past 4 days (which is usually the length of my actual period). I’m so confused. Is everything alright with me? Is this normal?