The ancient Egyptians learned this the hard way. Many of their tombs were marked with graphic warnings threatening anyone who disturbed them with various horrible ends. But most of them were robbed regardless, and those that weren't were eventually cracked open by 19th and 20th century archaeologists.
That wasn't because the people violating those tombs didn't understand the warnings (the archaeologists certainly did). It was for two reasons:
1. Some people, like the archaeologists, are going to read the warnings and dismiss them as dumb ancient superstitions; and
2. Other people, like ancient grave robbers, are going to read the warnings and think "Huh. They really want me to stay out of that place. There must be something really valuable in there!"