Use βλάκας for a plainly insulting judgment about someone’s thinking or behaviour. It is blunter than χαζός and κουτός, but usually less vulgar than μαλάκας and can be less severe than ηλίθιος depending on tone. Among friends it may be teasing, but that does not make it affectionate by itself.