anyway the best thing to do if a dog comes to investigate you is to stand still and let it investigate to make sure your friendly
um what
do you even
have you ever even had a dog?
for one thing, a dog isn't just going to "investigate" (if it seems like it's going to attack, which would be it barking/growling/etc. investigation behavior is walking up and smelling you)
standing still is definitely not a thing to do when a dog, or any animal for that matter, is being aggressive
neither is running, since basically all species of dogs can outrun you easily