How are clouds made up of ice crystals?

The high atmosphere is very cold. so as soon as a gas cloud touches the high atmosphere it turns into a ice crystals.