It shall be unlawful for any person to act as a licensee within this state without having first procured a license or temporary permit issued by the department pursuant to this chapter, or when a license or temporary permit has been canceled, suspended, revoked, invalidated, expired, or the terms and conditions of an agreement for a stipulated penalty entered into pursuant to Section 18064.5 have not been fulfilled.