What's the closest colloquial Russian translation of "I should have known better."?

e.g.
I should have known better than to trust him

I should have know better than to open my big mouth.