These are sort of rough numbers per square kilometer, not by mile. My opinion on problems and violence is that the more dense the population the more travel problems.

USA 32India 365Germany 230Philippines 310Thailand 125Peru 22

Ghana 92Togo 105Benin 67Nigeria 145Cameroon 35

There are some tribal problems that make a tribal situation sometime more dangerous than a city. Think about mountains, islands and deserts and how they influence the density. Peru as many mountains. Philippines has many islands, the cities are probably more dense.