If it's a male dog, take him in for nut removal surgery. That should teach him.