Johann Sebastian Bach had a criminal history!
Crime: Requesting termination of a contract. In 1717, Bach asked the Duke of Weimar to release him from employment so that he could pursue other opportunities. The Duke responded by ordering Bach’s arrest, and he spent the next month in jail. While attempting to get out of a contract is not generally considered illegal, the fact that a person couldn’t even be prosecuted for a double murder already tells you that in the 18th-century European aristocracy, a crime was pretty much whatever a member of the nobility said it was.