People constantly make assumptions. Sometimes it’s about people. Sometimes it’s about peoples’ actions.
What do you do if someone misinterprets your actions to be malicious? First, admit that you did it, even if they assume it was someone else. Second, explain yourself. If you didn’t mean to be malicious, then take that person through your thought process. Not everyone thinks the same way, so try to clear up the miscommunication. Third, forgive yourself regardless of if the other person forgives you.