Subject to the provisions of sections 17 to 23, the use of force against a person may be justified on the ground of his or her consent to the use of such force.