The better question is, how do I not get into jail? Russian police have been known to stop foreigners who are clearly identifiable by their skin color, outlandish behavior or joyous facial expressions for seemingly no apparent reason other than to keep them in terror for several long minutes. A good strategy in this situation is to alert the police that you are ready to call your consulate to sort out the issue after which they are likely to release you. Having the consulate number close by is also useful if you do get into jail for any misdemeanor. Consulate staff can give you the legal advice you need and, in the best case scenario, become your get out of jail free card.