John Kennedy actually said...
We are prepared to meet our obligations, but we can only defend the freedom of those who are determined to be free themselves.
Context
Address in Chicago at a Dinner of the Democratic Party of Cook County
04/27/1961