If you do something today, and tomorrow a law is passed that makes it illegal, you have not committed a crime. If you commit a crime today that has a penalty of a $100 fine, and tomorrow the penalty becomes $1000 and a month in jail, you will still only have the $100 fine.