that'll teach you to mess around (got hurt)
for example.
Now, I'm no expert, but shouldn't that be that'll teach you NOT to mess around?
Does the person really need to be taught to mess around? I think not.
How many times do I hear that'll teach you TO, when it should be that'll teach you NOT to?!
Unless of course you are saying that'll teach you to be more careful.
Thing is, it's not rocket science so there's really no excuse - is there?
Or am I just being a miserable old cow with too much time on her hands?