First off trump said he was unsure of the due process of law and explained he relied on the attorney general for that information
Second trump has never explicitly stated that he can ignore court orders
Third the context of his statement was meant to convey the fact that he can take legal action against democrat politicians like they did with him.