No circus or other large show exhibiting under canvas shall exhibit within a radius of five miles of any agricultural fair in this State during the time of the holding of such fair or one week prior to the holding of such fair, except under the auspices of or with the written consent of the association holding such fair signed by the executive office of such fair and filed with the sheriff of the county. All persons in charge of or in any way operating or assisting in carrying on any such circus or tent show violating the provisions of this section shall be fined in a sum not exceeding five hundred dollars or imprisoned for not longer than six months or both, in the discretion of the judge.