Here’s how to discourage them from digging up your lawn and garden.