Mizmor 17 invites two separate and almost contradictory approaches: a prayer of a 'ba'al teshuva' having realized his sins, has accepted his punishments and turns to God with hope; a prayer of one who has not sinned, and therefore does not deserve all the troubles that are coming his way.