The diary is a tool for Winston to express his innermost thoughts, because the Party does not allow him or anyone else to display any sort of emotion. This is dangerous, because keeping a diary is a punishable crime that could lead Winston to be executed.