you have to get the school to write you a cancellation letter which you then take to immigration office to cancel and get a new stamp with the date you must leave by.
So its important that you get the school to date it for the time you leave
should be ok. A rule of thumb is no more than 6 months of tourist visas per year unless allowed to stay longer like some countries which permit 12 month tourist visas