What did "triple gate" mean in ancient times? Why did Han Han name it "Three Gates"?

/question/12711410.html?si=1

Why did Han Han name it "Three Gates"

The first level: parental restraint at home. The second level: the school gate (Lin Yuxiang once climbed over the school gate) The third level: the shackles in one's own heart. . . . . . . . . . . . . .