The best defense so to speak is to carry evidence of your status whether that's a green card or foreign passport and I-94 admission record, to have the number of a local immigration attorney whom you can call if you need to, and to be aware of one's rights. The ACLU has a good discussion of these rights: https://www.aclu.org/know-your-rights/immigrants-rights.
What would you recommend for foreign born US citizens worried about being approached by ICE? What are the basic ground rules for interacting?
For example, some of us here look very much like we didnt grow up in an Iowa cornfield and have genuine concern that one negative interaction is going to result in being roughed up by untrained ICE agents at best and tossed into jail or worse.
Do we just get used to the idea of carrying our passport at all times? Is an ICE agent authorized to demand it and take it from us "for checking", say?
Bar two pieces of fragile paper - a passport and a naturalization certificate - it's not obvious that a citizen is a citizen.