The cops around here seem to think that bikes are toys, so they don't much care what you do when you're riding. That's fine by me.
My sepson and our best friend got pulled over by cops while riding. The cops said they were looking for suspects who had stolen a couple TVs from an appliance store. They invited the cops to search their bikes to see that they weren't carrying any stolen TVs. The cops took our friend in "on suspicion". He had to leave his bike on the side of the road. By the time we went back to get it, it had been stolen.