You can edit the order of filter rules and decide which filter rule follows another. So you can prevent that e-mail are edited wrong.
By default, the filter rules are prioritized in the order they were created. You can modify the priority as follows: