A crime is an act committed or omitted, in violation of a public law, either forbidding or commanding it; a breach or violation of some public right or duty due to a whole community, considered as a community. In its social aggregate capacity, as distinguished from a civil injury.
https://thelawdictionary.org/crime/