Crime is an act that is dangerous to society and subject to penalties according to the provisions of the penal code.