It means to take the piss,over step the mark,to do something malicous which is outside the established convention.