How to prevent miscarriage???

I just found out I’m pregnant and it’s so early I’m trying to prevent miscarriage.... I’m so scared something bad will happen.