This means something is not right to do. It is especially used when someone in a certain role does something wrong.
、。
For him, that was an event from the past that should not be recalled.
、に。
Betraying one's allies is behavior unbecoming of a samurai.
に、。
He lost the public's trust with a comment unbecoming of a politician.
、に。
As a teacher, it is an unforgivable act, and they should be severely punished.
、。
As an athlete, one should not utter words that insult an opponent.