A few thoughts on Psalm 24:3-4 and Purity
As believers we are called to be pure however there is no action good enough to make us pure.
Morality is a byproduct of your hearts purity. But it is not the primary objective.
The primary objective of purity is your hearts posture before The Lord and his precepts.