Crime is the breach of rules or laws for which some governing Authority can ultimately prescribe a conviction Individual human societies may each define crime and crimes differently. While every crime violates the law, not every violation of the law counts as a crime.
When informal relationships and sanctions prove insufficient to establish and maintain a desired social order, a goverment or a may impose more formalized or stricter systems of social control. With institutional and legal machinery at their disposal, agents of the state can compel pupolation to conform to codes, and can opt to punish or to attempt to reform those who do not conform.