Biting

My baby is just now getting his first two teeth and he is biting me when I feed him and it hurts so bad, any advice on how I can get him to not bite me?