Limiting Spread Counts

I’m building a ptach that has an unfortunate porperty that means that if i increase a spread I can accidently make it too big and crash! Is there anyway of having a maximum spread count to limit the number of spreads?

use the Min (Value) node to limit the value of the spreadcount …

or maybe resample comes handy here…