Those who build walls will become prisoners pope says