Period two implies chaos for a class of ODEs: a dynamical system approach