Even if it was retroactive, which it is not, being punished for premeditated tax avoidance can hardly be called unpredictable.
The central difference of opinion is of course whether outright gaming the system is acceptable regardless of the written rules being followed to the letter.