§ 288. Gambling; obscene shows; state police enforcement. No immoral, lewd, obscene or indecent show or exhibition, and no gambling device or devices, instrument or contrivance in the operation of which bets are laid or wagers made, wheel of fortune, or game of chance, shall be permitted upon the grounds during the annual meeting, fair or exposition of any county agricultural society or town or other agricultural society, and it shall be the duty of the state police to enforce this prohibition. This prohibition shall not be construed to prohibit horse racing, tests or trials of skill, or raffles as defined in article nine-A of the general municipal law.