The meaning of being a two-faced fence-sitter is to navigate between opposing sides, currying favor with one while not offending the other.
This term likely originated in the late Yuan and early Ming dynasties.
During times of war, ordinary people would hang wooden plaques on their doors to declare their allegiance and avoid harassment from either the Yuan or Ming armies.
Chapter 937