Men told self-defence not a defence for carrying knives in public