Section 1. Any person who shall falsely assume and take upon himself to act as a diplomatic, consular, or any other official of a foreign government duly accredited as such to the Government of the Republic of the Philippines with intent to defraud such foreign government or the Government of the Philippines, or any person, or in such pretended character shall demand or obtain, or attempt to obtain from person or from said foreign government or the Government of the Philippines, or from any officer thereof, any money, paper, document, or other thing, of value, shall be fined not more than five thousand pesos, or shall be imprisoned for not more than five years, or both, in addition to the penalties that may be imposed under the Revised Penal Code.