Vulnerability of Residents’ Living Space in Villages and Cities