All children do this and unfortunately it hurts. They have to go thru this process, it is part of the learning cycle! Unfortunately they do not know that it hurts. What I did was bite my daughter back. But I bit her in her neck, in the back. It worked. She stopped immediately. Try it. Hope it works for you. 

Aisha-Taweela