Sadly, lawyers qualify as part of the intelligentsia, so they’d probably be first to be sent to a camp or shot if it came to dictatorship. OTOH, enginerds are too valuable to a war/surveillance machine to not be used — they may end up working in a “sharashka.”
My advice: it hasn’t happened in the US for 200+ years, and it’s unlikely to happen. If it does, have enough capital to get out of Dodge. If you end up waiting tables in a cafe in a foreign city, it’s still better than death or imprisonment.