The same for heliocentrism. No one took Copernicus to court.
With silk and rubber the smuggling was illegal, the actual cultivation was not
Grave robbing was illegal (and still is) but dissection was not.
Needle exchange was illegal in some US states but was legal in many other countries.