Jim Cramer says this is a 'good rule' to follow when stocks double