Philippine President Rodrigo Duterte has threatened to jail critics of his use of martial law in the violence-wracked south, days before the Supreme Court is set to rule on its legality this week. Duterte declared military rule across the region of Mindanao, home to about 20 million people, in late May to quell what he said was a fast-growing threat from Daesh (the so-called IS) there. The Philippine leader has insisted he would ignore the findings of the court, which has constitutional oversight, vowing only to listen to recommendations from the armed forces. "It's not dependent on the whim of the Supreme Court. Should I believe them? When I see the situation is still chaotic and you ask me to lift it? I will arrest you and put you behind bars," Duterte said in a speech before local officials on Saturday. "We can talk of anything else and make compromises maybe but not when the interest of my country is at stake." Government forces are continuing to battle militants occupying the city of Marawi, with aerial bombardment and ferocious street-to-street combat that has left some 400 people dead and forced nearly 400,000 people in the wider area to flee their homes. Duterte has faced a backlash from opposition lawmakers, who last month asked the Supreme Court to reject the declaration of martial law, which they have slammed as unconstitutional. The 1987 constitution imposes limits on martial law to prevent a repeat of the abuses under dictator Ferdinand Marcos, who was deposed by a famous "People Power" revolution the previous year. The charter allows the Supreme Court to review the factual basis for proclaiming martial law, which is limited to an initial period of 60 days. If a president decides to extend martial law, congress can review and revoke it. Meanwhile, Duterte was prevented from marking the end of his first year in office in Marawi City on Friday and over the weekend, a palace official said on Saturday. In a speech during the celebration of the 120th founding anniversary of the Presidential Security Group on Wednesday, Duterte said: "I want to go to Marawi City. "It's too late in the day to be hesitating to go there." "If I have no luck (and I die there), I'll be brought back in a cargo aboard the C-130 (plane). We have a vice president (as my successor). So there should be no problem (if something happens to me)," Duterte joked at the time. When Duterte failed to go to Marawi City as scheduled on June 8, Cabinet officials said it was due to bad weather. — Agencies