A man accused of assaulting police at an anti-lockdown rally has been lectured before being bailed.