Brown Discharged

I have recently been experiencing brown discharge and cramps when my period is due I don't know if it because I have been eating different like less sugar and fats or if something is wrong. Any advice?? As this is the first time this has happened