Upon the third conviction of any person of a violation of any provision of this code or regulation adopted pursuant thereto relating to the taking or possession of fish, reptiles, or amphibia, or parts thereof, in any five-year period, and upon any conviction subsequent to the three convictions during a five-year period, that person shall be prohibited from taking any fish, reptiles, or amphibia in the state for three years from the date of the last conviction. The commission shall revoke the sport fishing license of the person who is prohibited from taking fish, reptiles, or amphibia in this state, if he or she has one, for the period of prohibition. It shall be unlawful for any person to obtain, or attempt to obtain, a sport fishing license during a period of prohibition.