You just described Obamacare.
There is more to this story but I’m not sure any of the background (drinking in public, purple drank, loitering and attitude) justifies the action. After the facts became clear, the charges should have been dropped and the local policy of allowing plain-clothes to moonlight like this should be reviewed. The security agent could have dealt with the situation better.