This means they are outside the city and not allowed to enter.
In that culture the dog was an unclean, despised animal. Here the word "dogs" is derogatory and refers to people who are wicked.