You seem to be using an idiosyncratic definition of either "liberty" or "criminal," because this seems to be tautological by the normal definitions. Something being criminal means your liberty to indulge in that thing has been taken away. So you could say this about any behavior — if you are at liberty to do it, it's not criminal, and if it's a crime, you are not at liberty to do it.