The expression describes pursuing a result by every available means. Depending on context, it can suggest determination or a willingness to use unfair methods.
When you might use it
A character in a story resolves to win the contest by persuasion, pressure or a clever plan. (New editorial example, not a collected quotation.)
Cultural context
This is an adverbial idiom in the dictionary, not a complete narrative proverb or an endorsement of deceit.