It shall be unlawful for any person to have or permit to remain upon his premises any gate that opens out upon the sidewalk.