Debugging Mail.app rules
Simplify it to 

Message content contains 'XXXXX'


&amp; add 'Stop evaluating Rules' as your last action in the Rule.

Or, if the number may possibly occur in other emails, make the rule.

All 
Message content contains 'The statement for your account ending in'  
Message content contains 'XXXXX'


Adding 'Stop evaluating Rules' is a sensible precaution for all rules that should stop at that point.