In your current situation, you need to decide if buying a vacation home is a realistic goal and if you can afford it. Even if you are able to rent it out to a third party, there will be a lot of maintenance and management costs involved in continuing to own the vacation home.
That maintenance and management cost may not be covered by the rental income. If you use a loan to purchase a vacation home, there is the issue of whether or not you can pay the monthly loan. If, hypothetically, you rent out the property to a third party, you will have to be prepared to incur losses if you do not receive significant income.
If you are buying a vacation home for tax saving purposes, make sure to check with a tax specialist to see if there is really a tax saving effect.