Electric wire is a great idea, it should deter most critters including dogs- you can also scare them off with a paint ball or pellet gun. Or when you see them in or near your yard set off some fire crackers- make them associate your yard with bad things. good luck!