Take (something) the wrong way

To understand something as wrong or insulting.

The waiter took my comments the wrong way and became angry.