I don't think "you didn't write a law specifically against it" should stop them from getting fined.
Devil's advocate here: The purpose of tax law is to collect a percentage based off earnings. Should funneling money around to reduce tax owed be illegal by your definition? You can prosecute people without laws in place. Everything would become arbitrary.
Two is not equal to three, even for large values of two.