Heya! here is your answer
We can keep ourselves safe from using the internet by not visiting dangerous websites that can contain viruses or malware, we should also avoid downloading any malicious files that contain viruses like trojan and RAT. We can also download some anti-virus protection software like Avast and Windows Security. Overall we need to be cautious about the internet and what dangerous things it might bring to us.
Hope it helps :)