Trifling with an officer, perhaps? (5)

I believe the answer is:
petty
'trifling' is the definition.
(I've seen this in another clue)
I don't understand how the remainder of the clue works.
Can you help me to learn more?
(Other definitions for petty that I've seen before include "small" , "This cash is of a trivial amount" , "Marked by narrowness of mind" , "Small-time" , "Trifling" .)
