You cannot control how someone reacts to your words and deeds. All you can control is your actions.
Well, that is not exactly true.
We are instructed to “make every effort to live in peace with everyone” (Hebrews 12:14) and to “make every effort to keep the unity of the Spirit through the bond of peace.” (Ephesians 4:3) And more specifically, “If it is possible, as far as it depends on you, live at peace with everyone.” (Romans 12:18)
When people respond to you negatively, you can also control how you react to them. You can get angry at them and choose to speak evil. However, you can also make every effort to bring peace to the situation as far as it depends on you.
You can control how you act along with how you react.