It’s not a statement you can generally follow though. More like, don’t do it if you don’t trust the site. Even better if you first download and take a quick look what you downloaded before running.
Plenty of legit programs have ‘curl’ or ‘wget’ based install instruction.
For example:
nvm
brew
…
