Use a leash or harness. Dogs are more likely to attack passing dogs when they are off a leash and around their owner or territory. Use a leash to help avoid run-ins with other dogs by restraining your dog. Avoid the threat of an attack by crossing the street when other dogs are walking on the same street, if you know the dog is not fully socialized.