Gerund is a noun formed from a verb. Thus 'coveting', in your example, is acting like a noun and not a verb, and the sentence is grammatically correct.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.