How can i be sure a file is safe?

If i download pdfs or videos from Frontends for example.