An enraged police officer fed up at being goaded by a teenage e-bike rider 'took the law into his own hands' and rammed into the back of him with his patrol car, a court heard.