Fairly sure the FBI's National Security Branch has China's embassy in DC, as well as its consulates in New York, Los Angeles, San Francisco and Chicago, under around the clock surveillance, assuming they aren't getting hit hard by personnel cuts themselves.
So any laid off federal employee or contractor, who is worth their salt, isn't going to be dumb enough to walk into a Chinese, Russian or whatever diplomatic mission within the US.
However, that's not going to stop them from selling American secrets if that's what they really want to do.
In fact, won't be surprised if some of them end up getting recruited on LinkedIn after updating their profiles upon receiving official termination notices.
PS YouTube algorithm tried recommending one of those fake ass FLG propaganda videos about China’s poverty alleviation and I reported it as “Fake and harmful information”.