The law provides very strict punishments for anyone caught committing any kind of crime or threatening tourists in any manner or form of mistreatment.
If a tourist feels threatened or harmed, it results in immediate jail time of 3 months with a direct deportation to the home country, once the jail time has been served. Due to the severe punishments, most people think three times over before ever attempting to carry out any kind of criminal activity.
The government of Dubai offers many pamphlets, and guides to tourists as a form of educating them of the risks involved if caught committing a crime. All tourists, residents, and locals know crime will not be tolerated and you have to pay the severe price for the crime. Along with jail time, the government may issue exile, temporary deportation and penalties.
In many cases people are imprisoned for months at a time and then deported for being caught with any kind of drugs and illegal contraband. Beware, as it is highly advisable not to break the rules by over intoxicating yourself, consumption of illegal drugs as they can all result in the severest of punishments for Islamic laws. Embassies and consulates are not allowed to intercede on behalf of the individual as indicated by the moral Islamic laws of the country; the consequence is placed on the guilty.
If a minor disorder is reported to the authorities, they will ensure to get to the bottom of the situation. With the widespread electronic surveillances throughout the city; tourists, locals and all may enjoy the safety and security it has to offer. If found guilty or charged, you will be required to appear in court where you have the right to a lawyer but it won't help much if there is physical evidence against you.