History suggests that periods of toleration of gay men and lesbians can swiftly end if the public senses an overreach.