Any person who‐
(1) personates any person employed in the public service on an occasion when the latter is required to do any act or attend in any place by virtue of his employment; or
(2) falsely represents himself to be a person employed in the public service, and assumes to do any act or to attend in any place for the purpose of doing any act by virtue of such employment,
is guilty of a felony and is liable to imprisonment for three years.
Section 108 of the Criminal Code Act in Nigeria