Passage
This is the gate of Jehovah: the righteous shall enter therein.
This is the gate of Jehovah: the righteous shall enter therein.
Psalms 118:18 Jah hath chastened me sore; but he hath not given me over unto death.
Psalms 118:19 Open to me the gates of righteousness: I will enter into them; Jah will I praise.
Psalms 118:20 This is the gate of Jehovah: the righteous shall enter therein.
Psalms 118:21 I will give thee thanks, for thou hast answered me, and art become my salvation.
Psalms 118:22 [The] stone which the builders rejected hath become the head of the corner:
The verse centers on "gate", "jehovah", "righteous", "shall", "enter", and "therein". It is saying that the verse draws attention to "gate" and "jehovah", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 19's "Open to me the gates of righteousness..." into verse 21's "I will give thee thanks for thou...", so "gate" and "jehovah" belong inside that flow. In Psalms context, the local focus is worship, trust, the LORD's kingship, and covenant mercy.
A plain takeaway is to answer the verse's own emphasis on "gate" and "jehovah" with trust shaped by these words, not by a vague optimism outside the passage.