Republican presidential candidate John Kasich on Sunday warned fellow party members about the perils of drawing a “red line” on key issues, including plans to void the Iran nuclear deal or defunding Planned Parenthood.

“You’ve got to be careful not to paint red lines that you can't keep,” the Ohio governor told “Fox News Sunday.”

Kasich, who as a House member served all 18 years on the chamber’s Armed Services Committee, argued congressional Republicans and others should see whether Iran complies with the terms of the deal over the next 18 months, or from now until Americans elect a new president in November 2016.

Under the terms of the international deal, Iran will curb its nuclear-development program in exchange for the lifting of billions of dollars’ worth of crippling economic sanctions.

“If they break any part of this deal, if they fund the radicals like Hamas and Hezbollah, then I think in that kind of a case, we've got to slap the sanctions back on,” Kasich said.

He also said that “all options are on the table,” including a military response, if Iran continues to develop a nuclear weapon, in violation of the deal.

Kasich offered similar advice about threats from congressional Republicans’ conservative caucus to make defunding Planned Parenthood part of a temporary spending bill that must be approved before Oct. 1 to avoid a partial government shutdown.

Kasich said he agrees that Planned Parenthood should lose its federal funding, in large part over recent revelations about the group’s involvement in the legal harvesting of fetal tissue.

However, he argued that President Obama will veto any such spending bill, which would lead to an unpopular government shutdown in a presidential election season.

“I think there are other ways for Congress to try to deal with this,” Kasich said. “And they need to be more creative in regard to Planned Parenthood. But when you shut the government down, people don't like it.  And you shouldn't shut it down unless you have a great chance of success.”