Colin Marsh, of no fixed address, admitted causing harassment, alarm or distress to a member of the public in St Helens.
The 46-year-old, who appeared at St Helens Magistrates’ Court, has been jailed for four weeks.