You may be surprised, but the USA has the precise same problem. For as large as our nation is over 90% is uninhabited and owned by the government. This has made... mega cities, where most of the people live in poverty and crime. (Which the wealthy/middle class, who live on the, basically, red lined half of the city think is JUST DANDY. They never go to the rest of the city out of fear... and yet they still think those of us who choose small towns are the stupid/poor ones. Despite the fact that, on average, living outside of towns and cities costs far more due to travel, wear and tear on vehicles, having to pay for county services instead of city (or like us private trash pickup, our own well, etc))
A few things here. First, unless you are including the Alaskan wilderness nowhere near 90% of the country is uninhabited or restricted from civilian use. True, a majority of the landmass has a low population density, but there is very little completely unsettled space in the country. Bloomberg has a nice series of graphics on the topic taken from DoA data.
https://www.bloomberg.com/graphics/2018-us-land-use/
I'm also not entirely sure where you get this idea that the middle/upper class of the US lives in the outskirts or small sections of 'mega cities' with the inner city being homogeneous hives of scum and villainy. The largest city by population in the US is NYC. This is the 11th largest city in the world. LA the US' next largest city, being 23rd on the list. Both of these cities do have crime issues, yes, but they are also known worldwide as being centers of art, tourism, and culture. The downtown areas of these cities are the most expensive to live in, not the outskirts, and vast numbers of workers commute into these cities to work via public transportation. Crime is generally distributed across the cityscape, however it tends to concentrate in lower-income areas and those with historical links to organized crime members.
I'm not really sure where you get the idea that those who are well-off do not care about those who are not or are scared to enter the city proper. Philanthropy has historically been the way in which large public works projects have been funded in large cities. Just look at NYC and try to find a project that did not in some way get funding from wealthy individuals. Philanthropy has also funded school improvements and crime prevention programs. Gentrification has taken place in many cities in the past 30 years completely changing their state. Here in CT New Haven, Bridgeport, Stratford, and Hartford are all good examples. Are there still problems? Of course there are, but there always will be. I personally do not feel unsafe in these cities either downtown or out in the side-streets.
For another better example, take Waterbury. I used to live in Wolcott, which was basically the suburb of Waterbury. Waterbury is a poor town. It's government is poor, the schools are poor, and poverty is rampant. Massive sections of the population are on welfare. Crime, particularly drug related crime, is rampant. Even so, I didn't feel unsafe visiting my church in the 'bad part' of town. I didn't feel unsafe as a delivery guy in that same 'bad part' of town. I didn't feel unsafe taking my little sister to a show at the theater or to the mall. As long as you don't cause trouble with anyone, the idea that "you'll be shot if you even look down XXX Street" is more of a Hollywood trope than actual truth. Yes I know there are areas where this is true, but these are the exception in terms of population and land area rather than the rule.
Your point regarding living in the country is also not completely true. Generally taxes, rent/land, and cost of living are all far higher in urban areas than in rural areas. True, you may not need to own a car, but public transport isn't generally free either. If you do end up owning a car you may have to spend thousands per month just for a parking spot somewhere in the city.
Paying for services is also not limited to rural areas. You have to pay for trash services privately if your town does not offer it as a public service, but if it is a public service then it get rolled into taxes. You mention a well. You do not pay on a continuing basis for a well or septic system, but you do pay every month for water/sewer if you have town connections. The same is true for natural gas. Internet/cable prices are often high in cities due to legacy licensing expenses. Electricity is often sold at a high rate due to the cost of the large amount of legacy infrastructure and high localized demand.