Shops are being urged to limit the sale of eggs and flour to potential pranksters aiming to cause havoc on Halloween.