while of course you should only do this if you are in a country where it is legal, you can look up a doi in libstc.cc, sci-hub.ru, or annas-archive.org
I assume viewing a PDF in browser is generally safe everywhere as long as you aren't downloading to HD or cloud? Or is even this activity realistically dangerous without a VPN in some places?