What is the origin of the line good fences make good neighbors?

This is from Robert Frost's poem Mending Wall. I believe the line is original to him. The stress is on the word wall, as in cooking dinner.