I'm 6 weeks pregnant

And I'm up crying because I had to use the bathroom and then I started having this brownish CM. I had a MMC in May so now I'm scared something is wrong or that I'm going to miscarry again. 😭 I have an appointment with my OB on the 31st.. should I go to the ER? Or just wait it out?