Any person, who at any time wears the uniform of, or a uniform similar to that of, a foreign military or semimilitary organization without being a member thereof and being entitled to do so, is guilty of a misdemeanor and is punishable by a fine of not less than one hundred dollars ($100) nor more than five hundred dollars ($500), or by imprisonment in the county jail not exceeding 60 days or by both such fine and imprisonment.
The provisions of this section shall not apply to the wearing of such uniforms by actors during the filming of any motion picture or the presentation of any stage play.