You can not water roof a wall by painting is with tar on the inside
The aim is (was?) to make it clear that even before they climb walls/fences, they are on US territory and subject to arrest, too include shooting them if needed or physically restraining illegals.