The story
Compare go pear-shaped (“to go awry; to go wrong”), attested somewhat later.
First known use, by meaning
- 1960s To avoid committing oneself to a single course of action; to go with the flow, take it easy.
Etymology from Wiktionary, CC BY-SA 4.0.