I had already put it in the thread, it was right below this post last I checked. I think @everittdmickey put it well, a crime is anything the gov says it is.
FWIW I believe your definition is more correct if we were still under common law. Unfortunately we're not.