I decided to draw on my own experiences when articulating Ed's reaction to sitting next to Sophie. The male brain thinks weird, creepy things for a few seconds before reason takes over. Training and good character is what prevents those first thoughts from taking over and letting him act on them. I have a feeling Ed and Bergson will be butting heads later on, since Ed is a good deal more restrained in his dealings with other people.