How many is too many then? Clearly any given area has a maximum support capacity for humans. Is it good for the environment or quality of life to keep packing people into mega-cities?
Those people still need to live somewhere, but bringing everyone closer together increases efficiencies by enormous amounts. Cities are the thing helping to save the environment.