Advice ?

I babysit 2 children ages one and two the two year old keeps hitting me especially in my stomach I'm 5 months pregnant and I've explained to her that there is a baby in my tummy and that she shouldn't do that but she continues to do it she doesn't hit me hard so i know my baby is fine how can i get her to understand hitting is bad ?