You can better your odds against threatware by:
Keeping your system up to date by installing software patches when available.
Using strong passwords and multi-factor authentication.
Educating yourself through end user security training so that you know what to avoid.
Installing next-generation antivirus.
Using web content filtering to block sites known to install threatware on visitors' devices.