If you actually read the early comics, it takes Peter a good long while to learn that lesson and he still forgot it pretty frequently. Still, his journey toward learning that lesson was a core part of his character until the writers decided to just make him a flawless Mary-Sue.