Yeah, it's one of those laws that superficially makes sense but tends to not work in the real world. A California specialty.
Probably better to put an upper salary bound on it. Stops the abuse of minimum wage workers while avoiding most of the silliness.