Brown Spotting instead of period and cramping

I have recently started spotting brown stuff and am having cramps. idk if it is my period coming or implantation bleeding how can i tell ??