The warning comes after a north-west London synagogue was hit by an arson attack overnight.