John Dryden said this quote

Great wits are to madness near alliedAnd thin partitions do their bounds divide.