The word "gates" represents an entrance to meet with another. This means the wicked will have to wait for the righteous person and beg to enter his presence. Alternate translation: "to meet with the righteous person" (See: [[rc://en/ta/man/translate/figs-metonymy]])