What does Psalm 100:4 really mean about gratitude, praise, and justice?

"Enter his gates with Thanksgiving and his courts with praise,"

What I get out of that is, you need appreciation and gratitude to become righteous, and you need secret worship and religious meditation to get justice from God.

What does Psalm 100:4 really mean about gratitude, praise, and justice?
Post Opinion