前倨后恭

qián jù hòu gōng

to switch from arrogance to deference (idiom)

qián

front

(literary) haughty; arrogant

hòu

back

gōng

respectful