If you want to continue your studies in Canada, you must apply for a study permit extension at least 30 days before your study permit expiration date.
The expiry date on your study permit tells you when you must stop studying and leave Canada. If your study permit expires, and you want to stay in Canada and study, you will need to apply for a new study permit or restore your status as a temporary resident.