A written law, or legal document, protects the area. It encourages sampling (taking a sample) because old remains might be there. The remains (that) are in danger, because they could be destroyed and lost forever.
"That" is referring to the remains.
Look at it this way: (There are) archaeological remains (might exist) that are in danger of being destroyed by construction or by the growth of cities