Generally not recommended to arrive on a study permit more than a couple of months before classes start plus cannot do any actual work until classes start.
Nobody here can guarantee of course whether arriving so early even if you have funds will not get some extra attention from CBSA.
Others will need to comment about the legality of research in conjunction with supervisor before official class start date.