How to restrict frame range for multiple F-curves at once?

I have lots of f-curves(~100) cycle modifier applied to and I want to restrict same frame range for all of them simultaneously. how would the script looks like for this action? i dont know how to script at all yet and feel pain to restrict same frame range for all curves manually. thank u guys in advance!