Except as otherwise provided in this article, any violation of this article constitutes a misdemeanor as to any and all persons, whether or not licensed under this division, and is punishable by imprisonment in the county jail not exceeding six months, or by a fine not exceeding two thousand five hundred dollars ($2,500), or by both the imprisonment and fine.