If you are past the 90 day restoration period then you will need to leave Canada, return to your home country and apply for the work permit from your home country. You cannot apply from within Canada or at the border. Your only choice is to leave and apply from outside of Canada.