Can I set a stat cap to a certain amount on a class?

I am using the YEP_LevelUpGrowthEffects plugin to give a specific levelup growth on certain characters, and i also plan to being able to change classes, however when i want to change a class, i'd like to go back to lv1 and keep the growth bonuses from the actor itself. However this would lead to a technical exploit, constantly changing classes will lead to going to 9999+ stats, I don't want that. Is it possible to put a max to the stats for a class?
I have moved this thread from RPG Maker MV Support to JavaScript/Plugin Support.
You can just use the Custom Level Up Growth notetag to say whatever parameter growth only happens if this is the highest level class the actor has.

Or to put a Math.min() in there to say the parameter equals X unless it's already >= Y.

Original thread: https://forums.rpgmakerweb.com/threads/can-i-set-a-stat-cap-to-a-certain-amount-on-a-class.161440/