Green’s Dictionary of Slang

crack n.2

[one whose brain has a fig. ‘crack’]

[17C–18C; 1990s+] a fool.