It depends on context though, when to mean “don’t be cocky” by that, you can say as follows;
知ったかぶるなよ
うぬぼれるなよ
The literal meaning of the first is “don’t pretend to know anything”, and the second is “don’t get conceited.” Note that both is somewhat more offensive than of the phrase in English.