Brown discharge and spotting no period

4 days till period , I’ve been having brown discharge and spotting but it hasn’t turned into my period yet I’ve also been having dull cramps .. why am I having brown discharge and spotting but no period ??