Constrain Particles to a box

I’m looking to make a display case for some particles and want to keep them only visible when inside a box. I’ll be using this on things like rain and snow.
Any ideas on how I can make this happen?
Thanks in advance