No sheriff or deputy sheriff shall be eligible to the office of county treasurer, nor shall any county treasurer be permitted to act as deputy sheriff.