Help !! Implantation or infection ? Discharge

I’m 9 DPO and 3 days till period top was this morning and bottom was 10-20 minutes ago I’ve been cramping a bit but nothing to crazy I’ve never had spotting and brown discharge before my period so it’s unusual .