I think it might be antithesis? Antithesis iirc is when opposites in a statement is used to create a contrasting effect. In this case, I think the opposites are do/avoid and right/wrong. If antithesis does not work, contrast might work?
epistrophe iirc is when there is a repetition of words at the end of a sentence. For example, “see no evil, hear no evil, speak no evil”
pls correct me if I am wrong as I am writing this past midnight.
Hopefully this helps. Wish you all the best!