Beefed up hate laws and penalties will crack down on people trying to whip up hatred as social cohesion comes under strain amid rising tension in the community.