there is far bigger problems at play if someone just taking your code and using it somewhere else makes them a lot more money than you
probably they have other things going on, some might be moral, some might be corrupt
the act of copying and deploying the code is not part of the corrupt part
it is ungentlemanly, perhaps, if all else is in order but usually there's some corruption going on
don't make the mistake of trying to evaluate a situation based on simple rules when the circumstances are never ever simple
if you see someone doing this who also displays psychopathic tendencies, then they probably have stolen resources or corrupt access to other stolen resources and where should you be looking for the problem?
the little guy who gets lucky running your code on their server?
or the cabal of shady motherfuckers who are already flush with cash and are doing it to suppress your earning capacity?