A while back I grabbed a topical corticosteroid cream from an indian subsidiary of an American pharmaceutical company because it was cheaper, faster, and easier than a dermatologist visit. It's often not a shady no-name manufacturer. Some guys in the bodybuilding world will get their steroids through Bayer's turkish subsidiary. Etc.
I don’t knot that steroids is a good example to support your case. Anabolic steroids are classified as Schedule III controlled substances under the Controlled Substances Act (CSA) in the United States.
Correct, my point is that you often wind up purchasing overseas from foreign subsidiaries of the same companies that make the prescribed and dispensed stuff here. You're still purchasing and using pharmaceutical-grade. The legal question is separate.
A large amount of pharmaceutical ingredients come out of China, and are safely used in American drugs approved, inspected, and tested [hopefully] by FDA. For those supply chains that are supposedly well regulated there's less risk than just purchasing from some unknown/untrusted entity that also happens to be in China, who might have put in all kinds of impurities or even poisons either by accident or on purpose.