It is not really that you can't try to measure both. Indeed, if you have an apparatus that measures p and another apparatus that measures x, nobody can stop you to turn on both apparatuses at the same time. And if you do that, the apparatuses will certainly show some values. But can the result of such a procedure be interpreted as a reliable measurement of x, p, or both? The only way to find out is to repeat the measurement of x, p, or both at a slightly later time. And if you do that, the new value of x, p, or both will typically be TOTALLY DIFFERENT from the first value. Quantum mechanically, that means that your procedure did not really collapse the wave function to an eigenstate of either x or p. Practically, that means that you cannot really interpret the result of such a procedure as a reliable measurement of either x or p.
By the way, if you measure ONLY x, or ONLY p, and repeat the measurement at a slightly later time, you will obtain the same value. Therefore, you can reliably measure only x or only p. But not both at once.