customs officer
A formal term for an official working at customs, inspecting goods and travelers.
税関吏がスーツケースを開けるように言った。
The customs officer told me to open my suitcase.
Compound of 税関 (customs) and 吏 (official, clerk). The exact historical derivation is uncertain, but the spelling is conventionally associated with the meaning.