Baby gate for top of stairs