Yanfly learn skill, level loss with xp

I am using yanfly’s learn skill system to learn skills and I am using exp to learn the skills. Is there any way I can prevent level loss when the character using exp? I am using another script that adds stat points when leveling up and don’t want the player to gain more stat points (and exploit) the system. Any help would be great!
Here is the script:
I have moved this thread from RGSS3 Scripts (RMVX Ace) to RGSSx Script Support.
If you want to disable the level loss when losing exp (from any source), you could add this as a new script close to "▼ Materials" (code copied from the original Game_Actor script):
Ruby:
# < Disable Level Down When Losing EXP >

class Game_Actor
 
  # Redefined
  def change_exp(exp, show)
    @exp[@class_id] = [exp, 0].max
    last_level = @level
    last_skills = skills
    level_up while !max_level? && self.exp >= next_level_exp
    # level_down while self.exp < current_level_exp
    display_level_up(skills - last_skills) if show && @level > last_level
    refresh
  end
end

Although this might then create a situation where it is beneficial to level as long as possible without any skills and then buying the skills you need, which would then delay the next level up significantly.

Maybe an alternative would be to use Yanflys "JP Manager" and use JP as a learn cost instead? Or implement an entirely new currency for it?
I don't like that option. Disabling the level down just like that could cause an issue whenever the hero should lose 1+ levels for any other reason, mainly because it'd never occur...
Definitely not wrong, it will even prevent the "Change Level" event command from reducing an actors level.

Since OPs motivation was that reducing levels would only cause problems with their stat distribution system I was assuming this would not be an issue. Still worth pointing out.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-learn-skill-level-loss-with-xp.168114/