Any person who knowingly and willfully violates any provision of this subtitle is guilty of a felony and on conviction is subject to a fine not exceeding $1,000 for the first violation and not exceeding $5,000 for each subsequent violation or imprisonment not exceeding 5 years or both.