1. Do not download/open suspicious files - most of the system infections are caused by the user himself, because he can download or open the file that was attached in the email or messages of other users. For example, if your friend sent you an email with an attachment, and there should not be an attachment, because there is no point in it, then it should not be opened because this may end up infecting the system
2. Do not visit suspicious resources - every time you visit a site you should make sure that it is safe. To do this just look at its protocol, if it is HTTPS, then the site is safe and you can be on it.
3. Use antiviruses with real-time industry email list protection. Despite the fact that this type of antivirus heavily loads the system, due to constant monitoring and scanning for viruses, it prevents viruses from entering the system.
4. Update your system periodically. The company that owns the system, for example Microsoft constantly offers new updates it is worth doing this because each update includes information about new viruses, as well as eliminates vulnerabilities in the system.
5. Use a firewall - it is a kind of antivirus that will not allow you to go to a suspicious site or will block background downloading of files from the site you went to.