Miscarriage question

El

I recently went to the doctors because I had a little spotting and at the end they told me that the baby was a little underweight I'm 10weeks 1day and the day the baby was weighing around 9weeks. They diagnosed me with a threatened miscarriage and I was wondering is their a way I could get back on track so the miscarriage won't happen or should I just let things go through. It's my first pregnancy and I want to try to make sure I'm doing everything I can right.