Possible meanings are 1) "make me safe because you always do what is right" or 2) "make me safe as I do what you want me to do" (See: [[rc://en/ta/man/translate/figs-idiom]])
Here "your ear" refers to God's willingness to hear someone who prays to him. See how this is translated in [Psalms 17:6](../017/006.md). Alternate translation: "pay attention to me" (See: [[rc://en/ta/man/translate/figs-metonymy]])