Visitor record refused

Hello! I got a letter of refusal for my visitor record (visitor extension) and they told me I need to leave the country asap, can I go out of the country and re-entry so the date is the actual and I have 6 more months? I just received the letter and I'm looking forward to communicate with someone on the IRCC tomorrow morning but I'm just anxious about this and I don't know what is the next step, someone here had the same issue before? Please I just need some advice. Thank you so much in advance!