"Experience teaches us to be most on our guard to protect liberty when the government's purpose is beneficent."