It means I can't be so easily fooled
Other similar expressions would include
I wasn't born yesterday
I didn't come down in the last shower of rain
and many others. Basically I'm not a fool, but the expression has more force if a little crude language is used.
But the force of such expressions relies on both parties understanding what it means. It might have been a deflating experience for the other if you had asked what he meant.