It teaches that something is wrong but makes no effort to teach how to correct the action because we magically assume people over the age of 18 are able to reason out every legal dispute in the book.
I'll give you that - but I don't think there's many laws that'll send you to jail that are not the basic, widely known ones, as well as the ones that come from common sense considering those ones.