There is no actual law that I know of. Entry will be at the discretion of the CBSA officer at the POE. If they feel you are no longer visiting (spending more time here than at home), they will limit your stay or ultimately deny you entry. Best to avoid that and gauge your travel accordingly, as a refused entry will make it difficult for future entries or visa/eta applications.