Imitation: it means that an individual, stimulated by the behavior of others, consciously or unconsciously makes his behavior similar to others without external control.
not imitation?
He wanted to jump the queue, but when he saw that others were lining up to buy tickets in order, he consciously came to the end of the queue