It totally depends on where you are and how the dog is acting. If the dog just looks totally normal and friendly, and it's wearing a collar or something, it's probably okay to approach it. If it looks dangerous, I'd stay away. The scenarios here are kind of endless, so it's really hard to give specific advice here.