It is illegal if you work more than 20 hours in a week when you are an international student, Moreover have you ever received any warning from CRA regarding working more than 20 hours ? If not then you must be fine and stop working more than 20 hours if you are still working