When Allah's (ﷻ) protection upon an in individual is involved, as it was with all Prophets and especially Prophet Muhammad (ﷺ), then there is no factor in the world that can lead that individual astray, be it a fierce enemy or human emotions/desires. Allah (ﷻ) is the Greatest and nothing overcomes His Will/Plan.
- The Protection of Allah (ﷻ) upon the Prophet Muhammad (ﷺ) started with purifying the Prophet's (ﷺ) heart during childhood (authentic hadith) so that he (ﷺ) naturally inclined to what was good/righteous.
- The Protection also included Allah (ﷻ) keeping him (ﷺ) away from places/situations involving evil. Example- while people were in the city worshiping idols, he (ﷺ) was in a Cave meditating. At 14, he (ﷺ) wasn't just hanging around; he (ﷺ) was assisting in battles occurring around him (ﷺ) (e.g., Al Fijr).
Note: You will need to provide solid evidence that he (ﷺ) was ever in a situation where someone tried to seduce him (ﷺ); without evidence, you cannot assume. Moreover, to know how Allah's (ﷻ) protected individual would respond to such a situation, read the Qur'an story on Prophet Yusuf عليه السلام.
It's easy to overcome natural desires with patience, BTW.. even for people today.