It is extremely offensive to use this word with someone you do not know.
When someone acts foolish or does something stupid we might consider that to be cute.
The most common explanation for its etymology involves not the Japanese, but instead the Chinese writing of.
To regret that you or someone else did something stupid.
This theory was put forward by an Edo period Japanese scholar, Sadakage Amano, and is used in most major Japanese dictionaries, including the.
So when your intention is to insult someone and you say it in an angry voice, it is a derogatory term and the other person will get offended, of course.