In imperial China, 500 liang (两) of silver was called a 封. Half that - 250 - was considered an incomplete or worthless amount. Calling someone 二百五 implies they are half-baked, not even worth a full 500.
register
This is a colloquial insult. It is mildly offensive but very commonly used in informal speech, especially in northern China.