Many many thanks

How can I avoid from a similar problem?

I have Avast Free Antivirus and Malwarebytes Anti-Malware