Whoever violates any provision of this chapter shall be guilty of a misdemeanor of the third degree. If the of fender has been previously convicted of a violation of this chapter, such second or subsequent offense shall constitute a misdemeanor of the second degree.