The question has been asked: If Jesus is not Yahweh, and was simply a man, how is it that Jesus was able to remain sinless cradle to grave when neither Adam nor Eve could do so even for a short time?
Jesus had ample time to learn from his Father before he came to the earth. He was “sanctified” and “sent into the world” of mankind, which implies that he was perfectly prepared for this experience before being sent by the only true God “into” the world of mankind. As a human, however, it appears possible that he was led by the spirit to draw upon this knowledge as needed, similar to the manner that the holy spirit was sent as a helper to the apostles to remind them of the things Jesus had already taught them. Technically, Jesus could have sinned as did Adam, but the scriptures inform us that he always obeyed his God, and was without sin.
After his baptism, we are informed that Jesus had unlimited access to the holy spirit. Before he began his ministry, he had been obedient, but there is no record of his being persecuted for his obedience. The added strength of the holy spirit could also have provided another way for him to remain obedient even while suffering.
For further study, see: