Individually? Either try to ride with the Capitalists for as long as they last if you’re already one of them, or join the Working Class and help bring about Socialism.
Capitalism has a natural tendency to go from free competition and decentralization to centralization over time, which lowers the real rate of profit. In fighting this, Capitalists go for more centralization to raise absolute profits, which has a definite limit. This means Socialism, ie public ownership and central planning by the Working Class, is a logical step beyond Capitalism brought about by Capitalism’s very mechanisms.
I have an Introductory Reading List for Marxism if you want to read more about what you can do personally.
Ethics and legality are far from the same, or even linked.