Your theory is correct. Buying the Ask and immediately turning around and selling at the Bid will typically result in a 1-tick loss ($12.50 on the ES) plus commissions.
If you're losing $25 and the Bid/Ask spread is 1-tick (typical for the ES), something is wrong. However, I have seen a...