Ignore advice on the internet and get a lawyer instead.
I encountered this clause at a previous job and i did not sign anything until we agreed on an additional document stating that that clause does not apply. I got the advice of a lawyer and vetted the additional document before signing. This clause was not even legal in my country
Contract law should be taken seriously. Get a lawyer and see if you can push back. If you're not in the US and they really want you it might work.
Also, f** companies that have such clauses.