If his motivations were purely based on freedom and the democratization of information, and not on his own physical yearnings, he wouldn't have compromised his mission.
Unfortunately, his sexual desires superseded his common sense and that of the greater good.