In the Messages app preferences, you turn off the big switch that enables iMessage. No need to deregister or anything. Just flip the switch. The deregister process mentioned here is intended for leaving the iOS ecosystem so that messages will find you properly.