Keeping this in consideration, is loitering a crime?
Loitering has historically been treated as an inherent preceding offense to other forms of public crime and disorder, such as prostitution, begging, public drunkenness, dealing in stolen goods, scams, organised crime, robbery, harassment/mobbing, etc.
Is loitering illegal?
Loitering laws are often challenged as being a violation of people’s rights. However, local laws often have time, place, or manner restrictions that only make some types of loitering illegal. For example, a person can loiter in a park but not in front of a hospital.