implantation or period? 3 days before period

I got this 3 days before my period was due, I had really bad cramps as usual and now I'm on it's 5th day, if it is my period why did it come earlier?