Short answer: you can’t. But you can slow the attacker down by using strong passwords. How strong? Refer to the table below:

And don’t re-use your passwords. I suggest the free Bitwarden for managing them.