There is a difference between "laughing with someone" or "laughing at someone".
It is brought down that a fool doesn't realize he's a fool. He thinks the whole world are fools also, hereby thinking he's normal!
"shotah osur lerachem olov"
This is the biggest rachmonus that Torah says "osur lerachem olov"