Every outsider who willfully and knowingly violates this chapter after having been previously convicted of a violation of this chapter committed within seven years of the date of two or more prior violations that resulted in conviction, shall be punished by imprisonment in the county jail for not less than 10 days nor more than six months, or by both such imprisonment and a fine not exceeding five hundred dollars ($500).