It is usually best to EQ before compression. This way you can avoid compressing the frequencies that you are trying to boost or cut.