Change the narration: the officer said to the peon, “If you do not do your duty well, I will dismiss you”.
Explanation
The officer's statement is a warning, so "threatened" fits the context.It conveys the conditional clause accurately in indirect speech.