it all depends on how they are used. but they CAN be dangerous when someone doesn't know how much to take or takes them too often and develops a dependence.
more info at
https://psychonautwiki.org/wiki/Stimulants
https://psychonautwiki.org/wiki/Depressants
https://psychonautwiki.org/wiki/Responsible_drug_use