perhaps it had been a little unwise of him to take on the senior warrant officer in that way , and it reminded him of one of those pearls of wisdom that his instructors at sandhurst used to pass on , a junior officer takes on the rsm or a warrant officer at his peril , unless he has thought long and hard about it beforehand .