Idiom
go to any lengths to do somethinggo to any lengths (to do something)
go to great lengths (to do something) - to try very hard to achieve something.Some men will go to any lengths (= try any method) to disguise the fact that they're going bald.