If they notice you doing it, you won't be allowed to board the flight, and won't get a refund. This is the usual way things like this are enforced.