Hz Adam as eating the forbidden fruit?
Hz Adam was told not to approach the tree. He didn't go near the tree so there was no wrong done there.
All of us get time to mature into adults but P Adam didn't have this opportunity and so he was kept in the garden to experience "childhood".
The world was created for P Adam and his descendants. And so it is only logical that he would be removed from his initial habitat.
Hz Musa as killing a man
The man P Musa killed was an unjust man and P Musa quarrelled with him trying to protect someone. Since the kill was accidental and the beating justified, there was no wrong done on P Musa's part.
Hz Yunus? as being punished for something by being swallowed by a whale?
P Yunus left his people after praying for punishment. He didn't do any wrong as he was not asked not to leave. Being swallowed by a whale was not necessarily a punishment; all holy people undergo tests, eg P Ayyub with the great calamities.