
# -> Add to value
$scoreboard players remove @s OverlyRealistic.Player.Stats.Intelligence $(amount)

# -> Clamp
execute if score @s OverlyRealistic.Player.Stats.Intelligence matches ..-1 run \
    scoreboard players set @s OverlyRealistic.Player.Stats.Intelligence 0