Early miscarriage?

I had spotting for the past couple days that had mild cramps nothing worse than period pain I didn’t think much of it until today I had a large amount of brown discharge and extreme pain now I’m back to spotting is this a early miscarriage or something more concerning please help only 6weeks along