It means walking wrongly, erroneously. Be next to commit offences or crimes. Close to bad influences or bad company. Haughtily, wobble. Put at risk.
It is said when a person has a conduct that makes him likely to commit a crime or perform something that violates their own integrity or that of others. This may be related to acts that show carelessness or lack of responsibility of that person or persons with whom it is interacting.