A lost or stray dog can be aggressive. Hence you should always look at the dog and consider whether the dog needs your help or not. If you feel aggression coming from them, it is best to leave them be or let animal control take care of them.