There are so-called good areas and bad areas in most parts of the United States, both urban and rural. Good community, rich residents, good public security and clean neighborhood; Bad areas, poor residents, chaotic public security, dark and dirty neighborhoods. Sometimes there are only a few blocks between the good area and the bad area. For example, near Columbia University in new york is the famous Harley District; West Philadelphia near Pennsylvania is not so good either.
As for your coming to study abroad, the security of the school is generally good. It should be said that the overall security is still good. On the campus of the school, there is usually a blue alarm every twenty or thirty meters. Press if you are in trouble, and the school police will know. I'll help you at once. In addition, most streets are patrolled by school police on bicycles for 24 hours. If the students leave alone at night, you can also ask the school police to take you home. School police in the United States are all equipped with regular police, guns and batons.
If you come to study abroad, choose your favorite school, and then consider the safety issue.