Legal, no way. Safe, yes. Ethically quite defensible, definitely.
I've purchased Malarone from people like you, and I consider it perfectly safe. I usually pay about half the retail price, including shipping costs. I've got plenty at the moment and don't need more, but someone out there does.
Note that most web forums, including this one, forbid illegal activities, and that dispensing prescription medication without being licensed to do so (and following all applicable rules) is definitely illegal.