I’m not sure if this will work when it’s intentional biting of a territorial nature, but when Astrid bites me a little too hard, say, on my hand, I usually make a small, high-pitched (not too loud or harsh!) noise of pain and draw my hand away quickly. She seems to understand and stops biting...