There are some things you can do to avoid a KRACK attack:
Use public WiFi only when you really need it.
If possible, use wired connection rather than wireless.
Make sure you are connecting through secure protocols, e.g. HTTPS, STARTTLS, Secure Shell, etc.
Connect through VPN for an added layer of security.
Use your own cellular connection instead of connecting to an unprotected wireless network.
Install updates on your devices, they usually contain patches against the latest security threats.