The recommendation being made is not to arrive more than 45 days before classes start given you need to be prepared to explain to CBSA at the border how you would support yourself before classes start. There is really no maximum or minimum time before classes, you could arrive the day before if you want. As for working you can only work when classes start and not before as that would be illegal work.