How to set maximum for stats?

In my game, stats are increased by using items and training, but I'd still like to set an upper limit (128) for their "base" stat, which can no longer be raised using stat boosting items and training, but can be raised still by equipment. For example, someone with a base 128 ATK can still equip a +50 ATK sword and have an effective ATK of 178. I'd also like them to be able to be raised with status conditions. Is this possible/easy to set up?
I Googled "RPG Maker stat gain item" and it looks like this thread is what you want:

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-maximum-for-stats.148231/