Passage
This <FI>is<Fi> the gate to Jehovah, The righteous enter into it.
This <FI>is<Fi> the gate to Jehovah, The righteous enter into it.
Psalms 118:18 Jah hath sorely chastened me, And to death hath not given me up.
Psalms 118:19 Open ye to me gates of righteousness, I enter into them--I thank Jah.
Psalms 118:20 This <FI>is<Fi> the gate to Jehovah, The righteous enter into it.
Psalms 118:21 I thank Thee, for Thou hast answered me, And art to me for salvation.
Psalms 118:22 A stone the builders refused Hath become head of a corner.
The verse centers on "gate", "jehovah", "righteous", and "enter". 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 ye to me gates of righteousness..." into verse 21's "I thank Thee for Thou hast answered...", 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.