baby girl keeps putting her fingers in her mouth

to a point of gagging how do i sto her from

doing that she has come so close to throwing up she’ll put her whole hand or 4 finger in her mouth one of her molars has come in i don’t know if it’s because of teething but i get super scared she gags everytime had anyone else experienced this?