PLEASE HELP

I’m 5 weeks and 6 days pregnant and this is the second time this has happened, i went to the hospital last week and they said i had a threatened miscarriage & to stay off my feet. I was good for a week and now this, am i going to miscarry?