NYC (unless you go looking for trouble in the South Bronx or Brownsville) is much safer than most midwestern cities now. It’s demonstrably safer than Cincinatti or the Twin Cities, yet people from those areas often seem to think it’s still like “Fort Apache - the Bronx”.
Nobody should ever worry about visiting NYC unless you are really going to be stupid - and I second the person who said that you are probably at more risk from the NYPD these days than criminals.