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.
The police went to the extremes of installing the most advanced safety devices inthe man's house.