How you do protect yourself in these situations?
Don't use Windows. Keep your Linux OS and browser software up to date. Don't use Chrome. Don't use Google since they happily accept money from scammers and criminals to promote their ads. If you aren't using Tor, then use Firefox and install uBlock Origin, HTTPS Everywhere, and NoScript. Don't browse for random things on the same computer you are using to secure your bitcoin. Don't download random files.
It wasn't even a link, it was an answer to a question on google where i thought it would just open up an answer,,, the link opened up. Then i did virus scan on windows scan and it found lot of threats.
Lots of threats? It sounds like your machine has been infected for a while and you were just unaware up until now.