A. It is the true and correct position that Allah's Prophets do not sin. It has been said that the acts mentioned in the question took place before sayyidina Adam and sayyidina Musa were granted prophethood, and Allah knows best. A reference for these questions would be Qadi `Iyad's book al-Shifa', available in English.