But as for me, my feet were almost gone; my steps had well nigh slipped. The psalmist had doubted God's goodness and righteousness, on account of the prosperity of the wicked. He feels now that his doubt had been a sin, and had almost caused him to give up his confidence and trust in the Almighty.
He had well nigh slipped from the rock of faith into the abyss of scepticism.