Scottish police warn protesters over G8 violence