Penal Code Section 170
Personating a public servant
170. Whoever pretends to hold any particular office as a public servant, knowing that he does not hold such office, or falsely personates any other person holding such office, and in such assumed character does or attempts to do any act under colour of such office, shall be punished with imprisonment for a term which may extend to two years or with fine or with both.
Please refer to the Attorney General's Chamber of Malaysia's website for the latest law.