(a) All ballots, except vote by mail voter ballots, shall be marked only with the marking device provided by law.
(b) To prevent voters from marking their ballots with a pen or pencil, at the time of delivering a ballot to a voter, the precinct officer shall distinctly state that the voter shall mark the ballot with the device provided by law or the ballot will not be counted.