馬鹿と天才は紙一重(ばかとてんさいはかみひとえ)

Japanese vocabulary

Meaning: there is but a fine line between genius and insanity

See it used in real works