You are correct to observe that often the imagery of being in or outside of a city wall means the difference between being in relationship or not. In the Gospels, study out "cast into outer darkness" and what that means, in regard to the walls and gates of a walled city. And look just how big the walls of this city are! The city is secure from the evil ones.
The Kings and Nations of the New Earth
video
Randy Alcorn talks about Revelation 21 and how the Bible tells us the New Earth is a place of safety and cultural diversity. This video clip was excerpted from Randy's Eternity 101 DVD class.