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