How to detect if a GameObject is inside a Particle?

Hi.
I want my player to get damaged if leaves the withe trail showed bellow.
181920-ezgif-3-d1d538da6b28.gif

I made that trail with a particle system with a emission rate over time of 50, I did it because it was the only way I came up with and I don’t know if is the most optimized way.

Thanks!.
,

There are particle collision/trigger functions, but its not like thecollider ones with Enter, Stay and Exit. You could possibly set a boolean variable to be set to true when the particle trigger function is called.