"Mis" is a prefix that means "badly" or "wrongly". So, misbehaving means to behave badly or incorrectly.