There is another proverb: Zakon chto dyshlo, kuda povernyosh - tuda i vyshlo.
The translation: “Law is like a shaft of a cart, it points wherever you turn it to.”