If a person goes to extremes or takes something to extremes, they do or say something in a way that people consider to be unacceptable, unreasonable, or foolish.
He went to the extremes of installing the most advanced safety devices in his house. [+ of]
The doctor told me not to mention dieting to her in case she took it to the extreme.
There is a sense of shame, sometimes carried to extremes.