What is the meaning of [By Hook or by Crook]

By some possibly dishonest means