As for me, what I do is use Linux.
Linux's software installation model prevents you from getting infected by malware and viruses.
This almost true.
It is more accurate to say that Linux' software installation model
insulates you from infections. It doesn't prevent it, and a poor decision by a computer's user will always bypass even the most strict security model.
There is no automated system capable of preventing a user from being tricked.