Laws of New York 1796, page 669, ch.
A person who has a prior felony sex crime conviction is automatically found to be to a Level 3.
Among early extant laws is one from 1638 permitting the punishment of unspecified "immoralities" according to "the circumstances of the case.
Under Penal Law Section 130.