Appeal to Law Fallacy is where one believes a thing is either immoral or moral based on the laws or lack of laws in reference to the thing. Typically one argues against an action because it is against the law, or justifies an action simply because no law exists against it.
One of the greatest examples of Appeal to Law in America is Alcohol and drug laws especially weed. So many people are willing to drive to a liquor store and get a bottle of wine but vote for pathetic politicians that seek harsh drug laws against weed. Fundamentally there is no difference between alcohol and weed. In fact there is enough data to give argument that alcohol is more dangerous.
Appeal to Law Structure
A is moral because there is no law against it
A is immoral because it is illegal