The context of the following conversation is It was after hours and the library was closed, so Riley gave himself access.:
Riley says The door was still open, so I let myself in to the library..
The friend responds It was closed, what did you think you would have access to?.
Riley responds I thought that I could use their internet, but everything was shut down..
The friend responds You better not do that again or you will get in serious trouble. It is a good thing that you didn't have access to anything..
Riley responds I guess you are right. That was a stupid move on my part..
The friend responds Yes it was. Never do that again..