It is a risk, if there is any unfortunate event i.e. Cancellation of Flight due to Pandemic, or any delay... Legally they can not stop you to enter until your WP and TRV is valid and you have valid reason of travelling outside Canada..... like Business meeting, emergency etc..