@Mina ****
You need proof of onward travel, not necessary by airplane.
A simple train or bus ticket also might do as long as IO will see it as a realistic way for you to leave the country.
When you can proof your booked accomodation is at walking distance of the border, your explanation might be accepted by IO.