The context of the following conversation is It was after hours and the library was closed, so Riley gave himself access.:
Riley says I really needed to get a book in the library to help with my assignment and tomorrow is deadline for submission.
The friend responds So that's why you broke in? Seems kind of extreme to me..
Riley responds I would rather that than fail..
The friend responds Living life on the edge, I like it..
Riley responds The only way to live..
The friend responds Don't you think that is illegal though? You could be jailed for that!.