have one's nerves frayed at both ends