Green’s Dictionary of Slang

cunningham n.

also Mr Cunningham
[ironic pun on SE cunning + SE -ham, a sfx meaning ‘place’]

a fool, a gullible person.

[UK]C. Johnson Hist. of Highwaymen &c. 68: I like a Cunningham, [...] pretended myself with Child.
[UK]Grose Classical Dict. of the Vulgar Tongue n.p: Mr. Cunningham, a punning appellation for a simple fellow.
[UK]Grose Classical Dict. of the Vulgar Tongue (3rd edn) n.p.: Cunningham. A punning appellation for a simple fellow.
[UK]Lex. Balatronicum [as cit. 1796].
[UK]‘Jon Bee’ Dict. of the Turf, the Ring, the Chase, etc. 61: Cunningberry, also Cunningham — a half-witted fellow.