Although razor clam lives on the seashore or even in the sea, it is very sensitive to the concentration of salt. If the salinity is too high, it will leave that high environment. For example, just like people, when they breathe the bad smell in the air, they can temporarily resist it, but they can't live in that environment all the time.
I don't think it's possible to say that the tide is rising, because I have seen many videos. After salting, the razor clam comes out regardless, even if it is forced to be buried in the sand just salted, it will come out immediately. How can a creature living by the sea not know how it feels when it is submerged by water and still come out to die when it is played by natural enemies?
There are two situations when salt is sprinkled on the breathing hole of the razor clam. One is that the razor clam directly digs the ground to run away, and the other is to get out. Thus, the razor clam does not come out because of the high tide.