Municipality says man was penalized for placing merchandise on the sidewalk, has previously been punished for same offense and attempted to harm himself