Crime is both an illegal act (violates law) and an immoral act (violates moral standards). Most legal definitions and criminological theories recognize that crimes typically violate both legal codes and social morality, though there can be technical violations of law that aren't necessarily immoral. Option D correctly states that crime is both illegal AND immoral.