Every person who, in such manner as might, if not discovered, endanger a vessel, railway engine, motor, train, or car, shall show, mask, extinguish, alter, or remove any light or signal, or exhibit any false light or signal, is guilty of a class B felony and shall be punished by imprisonment in a state correctional facility for not more than ten years.