scoreboard players set #2 temp 2
execute store result score #coins temp run scoreboard players get @s coins
scoreboard players operation #coins temp /= #2 temp
execute unless score @s coins matches ..1 run tellraw @s ["",{"text":"You lost ","color":"aqua"},{"score":{"name":"#coins","objective":"temp"},"color":"gold"},{"text":" Coins","color":"gold"},{"text":"!","color":"aqua"}]
execute if score @s coins matches 1 run tellraw @s ["",{"text":"You can keep your single coin...","color":"aqua"}]
execute if score @s coins matches 0 run tellraw @s ["",{"text":"Lucky for you, you don't have any coins!","color":"aqua"}]
execute unless score @s coins matches ..1 run scoreboard players operation @s coins -= #coins temp