He is not harassing you. Actually he is irritated with your dog as your dog has annoyed him a lot. So try to keep an eye on your dog and train him not to go on the side of your landlord's area. Also train him in urinating on his own place. In this way your land lord would not have any complaint from you and your dog.