The reason this simple logic doesn't work is because there are valid transactions where the amount transferred is less than the tx fee.
I mentioned just showing a warning, that allows users to still do what they want....
But why would anyone do this regularly? I can think of some fringe scenarios, but unless you're the miner collecting the fee, you lose money on the deal. So it doesn't make sense for someone to do intentionally under normal circumstances.