You used a conditional so I assume you also know how such a system can fail. It's not hard to figure out how that can be exploited, right? You can't rely on that conditional being executed perfectly every time, even without adversarial actors. But why ignore adversarial actors?