Been to CDMX many times, where I take the subways to get around. I'm a gringo and CDMX has its bad areas like any other big city. They do also have police and cartel problems. Depending on your ethnicity and location, the US is equally dangerous. These things said, I love Mexico City and will always return. It is incredible and the folks who live there are wonderful.