Going through immigration and security without the intention of boarding the flight is generally frowned upon, with criminal liability in some countries (e.g. Singapore).
You may also face questioning from both the airline and immigration in order to exit back out to landside.
Why not wait until you need to actually fly somewhere?