Any person who falsely assumes or exercises the functions, powers, duties, and privileges incident to the office of sheriff, police officer, marshal, or other peace officer, or any local, city, county, state, or federal law-enforcement officer, or who falsely assumes or pretends to be any such officer, is guilty of a Class 1 misdemeanor. A second or subsequent offense is punishable as a Class 6 felony.
Va. Code § 18.2-174