The spirit of the law is not "large quantities", it's to get people used to the idea of letting nature be and not taking something just because you want to. If you come across a rock that you think is interesting and keep it for yourself, you're denying the next person to discover it on their trip. If you take a rock or two or maybe three, then so does the next person, and the next, well, you get how math works. So since people can't be trusted to not take, there exists an official policy that says you can't.
The website shows pictures of the sand collection and the microscope. It does not appear to be at a beach.